Modifier and Type | Method and Description |
---|---|
MetricKey |
build()
Creates and registers the Metric key.
|
MetricKey.Builder |
setDescription(String description) |
MetricKey.Builder |
setIsClusterAggregated(boolean isClusterAggregated) |
MetricKey.Builder |
setMetricType(MetricType metricType) |
MetricKey.Builder |
setName(String name) |
public Builder(String name)
name
- name of the Metricpublic MetricKey.Builder setName(String name)
name
- name for the Metricpublic MetricKey.Builder setDescription(String description)
description
- of the Metricpublic MetricKey.Builder setIsClusterAggregated(boolean isClusterAggregated)
isClusterAggregated
- whether this metric can be aggregated at cluster levelpublic MetricKey.Builder setMetricType(MetricType metricType)
metricType
- the metric type of this metricpublic MetricKey build()
Copyright © 2023. All Rights Reserved.