@Immutable public abstract class MetricOptions extends Object
MetricRegistry
.Modifier and Type | Class and Description |
---|---|
static class |
MetricOptions.Builder
Builder for
MetricOptions . |
Modifier and Type | Method and Description |
---|---|
static MetricOptions.Builder |
builder()
Returns a new
MetricOptions.Builder with default options. |
abstract Map<LabelKey,LabelValue> |
getConstantLabels()
Returns the map of constant labels (they will be added to all the TimeSeries) for the Metric.
|
abstract String |
getDescription()
Returns the description of the Metric.
|
abstract List<LabelKey> |
getLabelKeys()
Returns the list of label keys for the Metric.
|
abstract String |
getUnit()
Returns the unit of the Metric.
|
public abstract String getDescription()
Default value is ""
.
public abstract String getUnit()
Default value is "1"
.
public abstract List<LabelKey> getLabelKeys()
Default value is Collections.emptyList()
.
public abstract Map<LabelKey,LabelValue> getConstantLabels()
Default value is Collections.emptyMap()
.
public static MetricOptions.Builder builder()
MetricOptions.Builder
with default options.Builder
with default options.