public interface MetricPublisher
Modifier and Type | Method and Description |
---|---|
void |
reportAverageMetric(java.lang.String metricName,
long metricValue)
Reports a metric value to be averaged over a minute against the given name.
|
void |
reportMetric(java.lang.String metricName,
long metricValue,
long count,
long minValue,
long maxValue,
java.lang.String aggregatorType,
java.lang.String timeRollup,
java.lang.String clusterRollup)
Reports a generic metric value.
|
void |
reportMetric(java.lang.String metricName,
long metricValue,
java.lang.String aggregationType,
java.lang.String timeRollupType,
java.lang.String clusterRollupType)
Reports a generic metric value.
|
void |
reportObservedMetric(java.lang.String metricName,
long metricValue)
Reports a metric value shown as the current value against the given name.
|
void |
reportSumMetric(java.lang.String metricName,
long metricValue)
Reports a metric value to be summed up over a minute against the given name.
|
void reportAverageMetric(java.lang.String metricName, long metricValue)
Note: metricName is prepended with "Custom Metrics|".
metricName
- the name of the metricmetricValue
- the long value of the metricvoid reportSumMetric(java.lang.String metricName, long metricValue)
Note: metricName is prepended with "Custom Metrics|".
metricName
- the name of the metricmetricValue
- the long value of the metricvoid reportObservedMetric(java.lang.String metricName, long metricValue)
Note: metricName is prepended with "Custom Metrics|"
metricName
- the name of the metricmetricValue
- the long value of the metricvoid reportMetric(java.lang.String metricName, long metricValue, java.lang.String aggregationType, java.lang.String timeRollupType, java.lang.String clusterRollupType)
Note: metricName is NOT prepended with "Custom Metrics|".
metricName
- the name of the metricmetricValue
- the long value of the metricaggregationType
- the string representation of aggregation type. Values allowed: [AVERAGE, ADVANCED_AVERAGE,
SUM, OBSERVATION, OBSERVATION_FOREVERINCREASING]timeRollupType
- the string representation of time rollup type. Values allowed: [AVERAGE, SUM, CURRENT]clusterRollupType
- the string representation of cluster rollup type. Values allowed: [INDIVIDUAL, COLLECTIVE]void reportMetric(java.lang.String metricName, long metricValue, long count, long minValue, long maxValue, java.lang.String aggregatorType, java.lang.String timeRollup, java.lang.String clusterRollup)
Note: metricName is NOT prepended with "Custom Metrics|"
metricName
- the name of the metricmetricValue
- the value of the metriccount
- the number of valuesminValue
- the min value of the metricmaxValue
- the max value of the metricaggregatorType
- the type of aggregatortimeRollup
- the type of time rollupclusterRollup
- the type of cluster rollup