public class EventMetric extends Object
| Constructor and Description | 
|---|
EventMetric(MetricsService metricsService,
           String componentName,
           String featureName)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
com.codahale.metrics.Meter | 
eventRateMeter()
Gets the event rate meter. 
 | 
void | 
eventReceived()
Updates the metric measurements for a single event. 
 | 
com.codahale.metrics.Gauge<Long> | 
lastEventTimestampGauge()
Gets the last event timestamp Gauge (ms from the Epoch). 
 | 
void | 
registerMetrics()
Registers the metrics. 
 | 
void | 
removeMetrics()
Removes the metrics. 
 | 
public EventMetric(MetricsService metricsService, String componentName, String featureName)
metricsService - the Metrics Service to use for Metrics
 registration and deregistrationcomponentName - the Metrics Component Name to use for Metrics
 registration and deregistrationfeatureName - the Metrics Feature Name to use for Metrics
 registration and deregistrationpublic void registerMetrics()
public void removeMetrics()
public void eventReceived()
public com.codahale.metrics.Gauge<Long> lastEventTimestampGauge()
public com.codahale.metrics.Meter eventRateMeter()