Class MetricDescriptor

    • Constructor Detail

      • MetricDescriptor

        MetricDescriptor()
    • Method Detail

      • create

        public static MetricDescriptor create​(java.lang.String name,
                                              java.lang.String description,
                                              java.lang.String unit,
                                              MetricDescriptor.Type type,
                                              java.util.List<LabelKey> labelKeys)
        Creates a MetricDescriptor.
        Parameters:
        name - name of MetricDescriptor.
        description - description of MetricDescriptor.
        unit - the metric unit.
        type - type of MetricDescriptor.
        labelKeys - the label keys associated with the MetricDescriptor.
        Returns:
        a MetricDescriptor.
        Since:
        0.17
      • getName

        public abstract java.lang.String getName()
        Returns the metric descriptor name.
        Returns:
        the metric descriptor name.
        Since:
        0.17
      • getDescription

        public abstract java.lang.String getDescription()
        Returns the description of this metric descriptor.
        Returns:
        the description of this metric descriptor.
        Since:
        0.17
      • getUnit

        public abstract java.lang.String getUnit()
        Returns the unit of this metric descriptor.
        Returns:
        the unit of this metric descriptor.
        Since:
        0.17
      • getType

        public abstract MetricDescriptor.Type getType()
        Returns the type of this metric descriptor.
        Returns:
        the type of this metric descriptor.
        Since:
        0.17
      • getLabelKeys

        public abstract java.util.List<LabelKey> getLabelKeys()
        Returns the label keys associated with this metric descriptor.
        Returns:
        the label keys associated with this metric descriptor.
        Since:
        0.17