-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
twitter-server: Move ClientProfile to its Own File
Problem / Solution The `ClientRegistryHandler` provides multiple views into how downstream clients are performing, yet very little of the logic is reusable. Let's break off the `ClientProfile` and treat it as an actual model of the data. JIRA Issues: CSL-9011 Differential Revision: https://phabricator.twitter.biz/D391923
- Loading branch information
1 parent
77aa702
commit 344a5ab
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
server/src/main/scala/com/twitter/server/model/ClientProfile.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.twitter.server.model | ||
|
||
/** | ||
* ClientProfile is used to represent data | ||
* displayed in the "Least Performant | ||
* Downstream Clients" section of the Twitter | ||
* Server Admin Interface. | ||
*/ | ||
private[server] case class ClientProfile( | ||
name: String, | ||
addr: String, | ||
scope: String, | ||
successRate: Double, | ||
unavailable: Int) |