public abstract class HystrixMetrics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.netflix.hystrix.util.HystrixRollingNumber |
counter |
Modifier | Constructor and Description |
---|---|
protected |
HystrixMetrics(com.netflix.hystrix.util.HystrixRollingNumber counter) |
Modifier and Type | Method and Description |
---|---|
long |
getCumulativeCount(com.netflix.hystrix.util.HystrixRollingNumberEvent event)
Get the cumulative count since the start of the application for the given
HystrixRollingNumberEvent . |
long |
getRollingCount(com.netflix.hystrix.util.HystrixRollingNumberEvent event)
Get the rolling count for the given
HystrixRollingNumberEvent . |
protected HystrixMetrics(com.netflix.hystrix.util.HystrixRollingNumber counter)
public long getCumulativeCount(com.netflix.hystrix.util.HystrixRollingNumberEvent event)
HystrixRollingNumberEvent
.event
- HystrixRollingNumberEvent
of the event to retrieve a sum forpublic long getRollingCount(com.netflix.hystrix.util.HystrixRollingNumberEvent event)
HystrixRollingNumberEvent
.
The rolling window is defined by HystrixCommandProperties.metricsRollingStatisticalWindowInMilliseconds()
.
event
- HystrixRollingNumberEvent
of the event to retrieve a sum for