public abstract class HystrixMetrics extends Object
Modifier and Type | Field and Description |
---|---|
protected HystrixRollingNumber |
counter |
Modifier | Constructor and Description |
---|---|
protected |
HystrixMetrics(HystrixRollingNumber counter) |
Modifier and Type | Method and Description |
---|---|
long |
getCumulativeCount(HystrixRollingNumberEvent event)
Get the cumulative count since the start of the application for the given
HystrixRollingNumberEvent . |
long |
getRollingCount(HystrixRollingNumberEvent event)
Get the rolling count for the given
HystrixRollingNumberEvent . |
protected final HystrixRollingNumber counter
protected HystrixMetrics(HystrixRollingNumber counter)
public long getCumulativeCount(HystrixRollingNumberEvent event)
HystrixRollingNumberEvent
.event
- HystrixRollingNumberEvent
of the event to retrieve a sum forpublic long getRollingCount(HystrixRollingNumberEvent event)
HystrixRollingNumberEvent
.
The rolling window is defined by HystrixCommandProperties.metricsRollingStatisticalWindowInMilliseconds()
.
event
- HystrixRollingNumberEvent
of the event to retrieve a sum forCopyright © 2017. All Rights Reserved.