Свойство | Type | Description | |
---|---|---|---|
GetCurrentBucket | Bucket | ||
HystrixRollingNumber | System | ||
HystrixRollingNumber | System |
Méthode | Description | |
---|---|---|
Add ( HystrixRollingNumberEvent type, long value ) : void |
Add to the counter in the current bucket for the given HystrixRollingNumberEvent type.
|
|
GetCumulativeSum ( HystrixRollingNumberEvent type ) : long |
Get the cumulative sum of all buckets ever since the application started without rolling for the given HystrixRollingNumberEvent type. See GetRollingSum(HystrixRollingNumberEvent) for the rolling sum.
|
|
GetRollingMaxValue ( HystrixRollingNumberEvent type ) : long |
Get the max value of values in all buckets for the given HystrixRollingNumberEvent type. The HystrixRollingNumberEvent must be a "MaxUpdater" type (HystrixRollingNumberEvent.IsMaxUpdater() == true).
|
|
GetRollingSum ( HystrixRollingNumberEvent type ) : long |
Get the sum of all buckets in the rolling counter for the given HystrixRollingNumberEvent type. The HystrixRollingNumberEvent must be a "Counter" type (HystrixRollingNumberEvent.IsCounter() == true).
|
|
GetValueOfLatestBucket ( HystrixRollingNumberEvent type ) : long |
Get the value of the latest (current) bucket in the rolling counter for the given HystrixRollingNumberEvent type. The HystrixRollingNumberEvent must be a "Counter" type (HystrixRollingNumberEvent.IsCounter() == true).
|
|
GetValues ( HystrixRollingNumberEvent type ) : long[] |
Get an array of values for all buckets in the rolling counter for the given HystrixRollingNumberEvent type. Index 0 is the oldest bucket. The HystrixRollingNumberEvent must be a "Counter" type (HystrixRollingNumberEvent.IsCounter() == true).
|
|
HystrixRollingNumber ( IHystrixProperty |
Initializes a new instance of the HystrixRollingNumber class.
|
|
Increment ( HystrixRollingNumberEvent type ) : void |
Increment the counter in the current bucket by one for the given HystrixRollingNumberEvent type.
|
|
Reset ( ) : void |
Force a reset of all rolling counters (clear all buckets) so that statistics start being gathered from scratch. This does NOT reset the CumulativeSum values.
|
|
UpdateRollingMax ( HystrixRollingNumberEvent type, long value ) : void |
Update a value and retain the max value.
|
Méthode | Description | |
---|---|---|
GetCurrentBucket ( ) : Bucket |
Gets the current bucket. If the time is after the window of the current bucket, a new one will be created. Internal because it's used in unit tests.
|
|
HystrixRollingNumber ( ITime time, IHystrixProperty |
Initializes a new instance of the HystrixRollingNumber class.
|
|
HystrixRollingNumber ( ITime time, int timeInMilliseconds, int numberOfBuckets ) : System |
Initializes a new instance of the HystrixRollingNumber class. This constructor is used for unit testing to be able to inject mocked time measurement.
|
public Add ( HystrixRollingNumberEvent type, long value ) : void | ||
type | HystrixRollingNumberEvent | Defining which counter to add to, must be a "Counter" type (HystrixRollingNumberEvent.IsCounter() == true). |
value | long | Value to be added to the current bucket. |
Résultat | void |
public GetCumulativeSum ( HystrixRollingNumberEvent type ) : long | ||
type | HystrixRollingNumberEvent | Must be a "Counter" type (HystrixRollingNumberEvent.IsCounter() == true). |
Résultat | long |
public GetRollingMaxValue ( HystrixRollingNumberEvent type ) : long | ||
type | HystrixRollingNumberEvent | HystrixRollingNumberEvent defining which "MaxUpdater" to retrieve values from |
Résultat | long |
public GetRollingSum ( HystrixRollingNumberEvent type ) : long | ||
type | HystrixRollingNumberEvent | defining which counter to retrieve values from |
Résultat | long |
public GetValueOfLatestBucket ( HystrixRollingNumberEvent type ) : long | ||
type | HystrixRollingNumberEvent | HystrixRollingNumberEvent defining which counter to retrieve value from |
Résultat | long |
public GetValues ( HystrixRollingNumberEvent type ) : long[] | ||
type | HystrixRollingNumberEvent | HystrixRollingNumberEvent defining which counter to retrieve values from |
Résultat | long[] |
public HystrixRollingNumber ( IHystrixProperty |
||
timeInMilliseconds | IHystrixProperty |
The total time window to track. |
numberOfBuckets | IHystrixProperty |
The number of parts to break the time window. |
Résultat | System |
public Increment ( HystrixRollingNumberEvent type ) : void | ||
type | HystrixRollingNumberEvent | Defining which counter to increment, must be a "Counter" type (HystrixRollingNumberEvent.IsCounter() == true). |
Résultat | void |
public UpdateRollingMax ( HystrixRollingNumberEvent type, long value ) : void | ||
type | HystrixRollingNumberEvent | Defining which counter to update, must be a "MaxUpdater" type (HystrixRollingNumberEvent.IsMaxUpdater() == true). |
value | long | Value to be updated to the current bucket |
Résultat | void |