Class AutoValue_MetricOptions


  • @Generated("com.google.auto.value.processor.AutoValueProcessor")
    final class AutoValue_MetricOptions
    extends MetricOptions
    • Field Detail

      • description

        private final java.lang.String description
      • unit

        private final java.lang.String unit
      • labelKeys

        private final java.util.List<LabelKey> labelKeys
    • 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 class MetricOptions
        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 class MetricOptions
        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 class MetricOptions
        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 class MetricOptions
        Returns:
        the map of constant labels for the Metric.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object