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 class
AutoValue_MetricOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<LabelKey,LabelValue>
constantLabels
private java.lang.String
description
private java.util.List<LabelKey>
labelKeys
private java.lang.String
unit
-
Constructor Summary
Constructors Modifier Constructor Description private
AutoValue_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 boolean
equals(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.String
getDescription()
Returns the description of the Metric.java.util.List<LabelKey>
getLabelKeys()
Returns the list of label keys for the Metric.java.lang.String
getUnit()
Returns the unit of the Metric.int
hashCode()
java.lang.String
toString()
-
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:MetricOptions
Returns the description of the Metric.Default value is
""
.- Specified by:
getDescription
in classMetricOptions
- Returns:
- the description of the Metric.
-
getUnit
public java.lang.String getUnit()
Description copied from class:MetricOptions
Returns the unit of the Metric.Default value is
"1"
.- Specified by:
getUnit
in classMetricOptions
- Returns:
- the unit of the Metric.
-
getLabelKeys
public java.util.List<LabelKey> getLabelKeys()
Description copied from class:MetricOptions
Returns the list of label keys for the Metric.Default value is
Collections.emptyList()
.- Specified by:
getLabelKeys
in classMetricOptions
- Returns:
- the list of label keys for the Metric.
-
getConstantLabels
public java.util.Map<LabelKey,LabelValue> getConstantLabels()
Description copied from class:MetricOptions
Returns the map of constant labels (they will be added to all the TimeSeries) for the Metric.Default value is
Collections.emptyMap()
.- Specified by:
getConstantLabels
in classMetricOptions
- Returns:
- the map of constant labels for the Metric.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-