Package io.opencensus.metrics
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 io.opencensus.metrics.MetricOptions.Builder
build
-
Field Details
-
description
-
unit
-
labelKeys
-
constantLabels
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setDescription
Description copied from class:MetricOptions.Builder
Sets the description of the Metric.- Specified by:
setDescription
in classMetricOptions.Builder
- Parameters:
description
- the description of the Metric.- Returns:
- this.
-
setUnit
Description copied from class:MetricOptions.Builder
Sets the unit of the Metric.- Specified by:
setUnit
in classMetricOptions.Builder
- Parameters:
unit
- the unit of the Metric.- Returns:
- this.
-
setLabelKeys
Description copied from class:MetricOptions.Builder
Sets the list of label keys for the Metric.- Specified by:
setLabelKeys
in classMetricOptions.Builder
- Parameters:
labelKeys
- the list of label keys for the Metric.- Returns:
- this.
-
getLabelKeys
- Specified by:
getLabelKeys
in classMetricOptions.Builder
-
setConstantLabels
Description copied from class:MetricOptions.Builder
Sets the map of constant labels (they will be added to all the TimeSeries) for the Metric.- Specified by:
setConstantLabels
in classMetricOptions.Builder
- Parameters:
constantLabels
- the map of constant labels for the Metric.- Returns:
- this.
-
getConstantLabels
Map<LabelKey,LabelValue> getConstantLabels()- Specified by:
getConstantLabels
in classMetricOptions.Builder
-
autoBuild
MetricOptions autoBuild()- Specified by:
autoBuild
in classMetricOptions.Builder
-