T - type of metricpublic interface MetricDescriptor<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
MetricDescriptor.Formatter |
| Modifier and Type | Field and Description |
|---|---|
static int |
FRACTION_MULTIPLIER
Used during creation of metric instance with
MetricDescriptor.Formatter.FRACTION formatting. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getField() |
MetricDescriptor.Formatter |
getFormatter()
Specifies how the values should be formatted
|
String |
getLabel() |
int |
getMetricIdentifier() |
ValueMapper<T> |
getValueFunction() |
ValueReducer<StatusSnapshot,Long> |
getValueReducer() |
boolean |
isCounter() |
static final int FRACTION_MULTIPLIER
MetricDescriptor.Formatter.FRACTION formatting. The expected way is to multiply
the floating point metric value with it before converting into long. By this, enough of the fractional part might be
kept for visualisation. In order to show the correct number the result must be divided with the same number before
presenting.int getMetricIdentifier()
MetricDescriptor.Formatter getFormatter()
String getDescription()
String getLabel()
String getField()
ValueMapper<T> getValueFunction()
ValueMapper that can be used to extract a value for the
status historyValueReducer<StatusSnapshot,Long> getValueReducer()
ValueReducer that can reduce multiple StatusSnapshots
into a single Long valueboolean isCounter()
true if the metric is for a component Counter, false otherwiseCopyright © 2023 Apache NiFi Project. All rights reserved.