Property | Type | Description | |
---|---|---|---|
GetCurrentBucket | Bucket | ||
HystrixRollingPercentile | System |
Method | Description | |
---|---|---|
AddValue ( ) : void |
Add value (or values) to current bucket.
|
|
GetMean ( ) : int |
Gets the mean (average) of all values in the current snapshot. This is not a percentile but often desired so captured and exposed here.
|
|
GetPercentile ( double percentile ) : int |
Compute a percentile from the underlying rolling buckets of values. For performance reasons it maintains a single snapshot of the sorted values from all buckets that is re-generated each time the bucket rotates. This means that if a bucket is 5000 milliseconds, then this method will re-compute a percentile at most once every 5000 milliseconds.
|
|
HystrixRollingPercentile ( IHystrixProperty |
Initializes a new instance of the HystrixRollingPercentile class.
|
|
Reset ( ) : void |
Force a reset so that percentiles start being gathered from scratch.
|
Method | 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.
|
|
HystrixRollingPercentile ( ITime time, IHystrixProperty |
Initializes a new instance of the HystrixRollingPercentile class.
|
public GetPercentile ( double percentile ) : int | ||
percentile | double | Value such as 99 (99th percentile), 99.5 (99.5th percentile), 50 (median, 50th percentile) to compute and retrieve percentile from rolling buckets. |
return | int |
public HystrixRollingPercentile ( IHystrixProperty |
||
timeInMilliseconds | IHystrixProperty |
Number of milliseconds of data that should be tracked. |
numberOfBuckets | IHystrixProperty |
Number of buckets that the time window should be divided into. |
bucketDataLength | IHystrixProperty |
Number of values stored in each bucket. |
enabled | IHystrixProperty |
Sets whether data should be tracked and percentiles be calculated. |
return | System |