Class LabelKey

  • Direct Known Subclasses:
    AutoValue_LabelKey

    @ExperimentalApi
    @Immutable
    public abstract class LabelKey
    extends java.lang.Object
    The key of a Label associated with a MetricDescriptor.
    Since:
    0.15
    • Constructor Detail

      • LabelKey

        LabelKey()
    • Method Detail

      • create

        public static LabelKey create​(java.lang.String key,
                                      java.lang.String description)
        Creates a LabelKey.
        Parameters:
        key - the key of a Label.
        description - a human-readable description of what this label key represents.
        Returns:
        a LabelKey.
        Since:
        0.17
      • getKey

        public abstract java.lang.String getKey()
        Returns the key of this LabelKey.
        Returns:
        the key.
        Since:
        0.17
      • getDescription

        public abstract java.lang.String getDescription()
        Returns the description of this LabelKey.
        Returns:
        the description.
        Since:
        0.17