Class AutoValue_MetricOptions.Builder
java.lang.Object
io.opencensus.metrics.MetricOptions.Builder
io.opencensus.metrics.AutoValue_MetricOptions.Builder
- Enclosing class:
AutoValue_MetricOptions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) MetricOptions(package private) Map<LabelKey, LabelValue> setConstantLabels(Map<LabelKey, LabelValue> constantLabels) Sets the map of constant labels (they will be added to all the TimeSeries) for the Metric.setDescription(String description) Sets the description of the Metric.setLabelKeys(List<LabelKey> labelKeys) Sets the list of label keys for the Metric.Sets the unit of the Metric.Methods inherited from class MetricOptions.Builder
build
-
Field Details
-
description
-
unit
-
labelKeys
-
constantLabels
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setDescription
Description copied from class:MetricOptions.BuilderSets the description of the Metric.- Specified by:
setDescriptionin classMetricOptions.Builder- Parameters:
description- the description of the Metric.- Returns:
- this.
-
setUnit
Description copied from class:MetricOptions.BuilderSets the unit of the Metric.- Specified by:
setUnitin classMetricOptions.Builder- Parameters:
unit- the unit of the Metric.- Returns:
- this.
-
setLabelKeys
Description copied from class:MetricOptions.BuilderSets the list of label keys for the Metric.- Specified by:
setLabelKeysin classMetricOptions.Builder- Parameters:
labelKeys- the list of label keys for the Metric.- Returns:
- this.
-
getLabelKeys
- Specified by:
getLabelKeysin classMetricOptions.Builder
-
setConstantLabels
Description copied from class:MetricOptions.BuilderSets the map of constant labels (they will be added to all the TimeSeries) for the Metric.- Specified by:
setConstantLabelsin classMetricOptions.Builder- Parameters:
constantLabels- the map of constant labels for the Metric.- Returns:
- this.
-
getConstantLabels
Map<LabelKey, LabelValue> getConstantLabels()- Specified by:
getConstantLabelsin classMetricOptions.Builder
-
autoBuild
MetricOptions autoBuild()- Specified by:
autoBuildin classMetricOptions.Builder
-