Package io.opencensus.metrics
Class AutoValue_MetricOptions
- java.lang.Object
-
- io.opencensus.metrics.MetricOptions
-
- io.opencensus.metrics.AutoValue_MetricOptions
-
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_MetricOptions extends MetricOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAutoValue_MetricOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<LabelKey,LabelValue>constantLabelsprivate java.lang.Stringdescriptionprivate java.util.List<LabelKey>labelKeysprivate java.lang.Stringunit
-
Constructor Summary
Constructors Modifier Constructor Description privateAutoValue_MetricOptions(java.lang.String description, java.lang.String unit, java.util.List<LabelKey> labelKeys, java.util.Map<LabelKey,LabelValue> constantLabels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Map<LabelKey,LabelValue>getConstantLabels()Returns the map of constant labels (they will be added to all the TimeSeries) for the Metric.java.lang.StringgetDescription()Returns the description of the Metric.java.util.List<LabelKey>getLabelKeys()Returns the list of label keys for the Metric.java.lang.StringgetUnit()Returns the unit of the Metric.inthashCode()java.lang.StringtoString()-
Methods inherited from class io.opencensus.metrics.MetricOptions
builder
-
-
-
-
Field Detail
-
description
private final java.lang.String description
-
unit
private final java.lang.String unit
-
labelKeys
private final java.util.List<LabelKey> labelKeys
-
constantLabels
private final java.util.Map<LabelKey,LabelValue> constantLabels
-
-
Constructor Detail
-
AutoValue_MetricOptions
private AutoValue_MetricOptions(java.lang.String description, java.lang.String unit, java.util.List<LabelKey> labelKeys, java.util.Map<LabelKey,LabelValue> constantLabels)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from class:MetricOptionsReturns the description of the Metric.Default value is
"".- Specified by:
getDescriptionin classMetricOptions- Returns:
- the description of the Metric.
-
getUnit
public java.lang.String getUnit()
Description copied from class:MetricOptionsReturns the unit of the Metric.Default value is
"1".- Specified by:
getUnitin classMetricOptions- Returns:
- the unit of the Metric.
-
getLabelKeys
public java.util.List<LabelKey> getLabelKeys()
Description copied from class:MetricOptionsReturns the list of label keys for the Metric.Default value is
Collections.emptyList().- Specified by:
getLabelKeysin classMetricOptions- Returns:
- the list of label keys for the Metric.
-
getConstantLabels
public java.util.Map<LabelKey,LabelValue> getConstantLabels()
Description copied from class:MetricOptionsReturns the map of constant labels (they will be added to all the TimeSeries) for the Metric.Default value is
Collections.emptyMap().- Specified by:
getConstantLabelsin classMetricOptions- Returns:
- the map of constant labels for the Metric.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-