
public class HealthCountsStream extends BucketedRollingCounterStream<HystrixCommandCompletion,long[],HystrixCommandMetrics.HealthCounts>
HystrixCommandProperties.metricsHealthSnapshotIntervalInMilliseconds()
b = HystrixCommandProperties.metricsRollingStatisticalWindowBuckets()
These values are stable - there's no peeking into a bucket until it is emitted
These values get produced and cached in this class. This value (the latest observed value) may be queried using BucketedCounterStream.getLatest().bucketedStream, numBuckets, subscription| Modifier and Type | Method and Description |
|---|---|
static HealthCountsStream |
getInstance(HystrixCommandKey commandKey,
HystrixCommandProperties properties) |
static HealthCountsStream |
getInstance(HystrixCommandKey commandKey,
int numBuckets,
int bucketSizeInMs) |
static void |
removeByKey(HystrixCommandKey key) |
static void |
reset() |
observegetLatest, startCachingStreamValuesIfUnstarted, unsubscribepublic static HealthCountsStream getInstance(HystrixCommandKey commandKey, HystrixCommandProperties properties)
public static HealthCountsStream getInstance(HystrixCommandKey commandKey, int numBuckets, int bucketSizeInMs)
public static void reset()
public static void removeByKey(HystrixCommandKey key)