Class MeterKey

java.lang.Object
com.atlassian.diagnostics.ipd.api.MeterKey

public class MeterKey extends Object
Represents a key for an IPD meter, which includes a name and an array of tags. Tags are meters dimensions. This class provides methods to retrieve the name, tags, and their corresponding formats.
Since:
5.0.0
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getTags

      public MeterTag[] getTags()
    • getTagsAsMap

      public Map<String,String> getTagsAsMap()
    • getFormattedTagsAsMap

      public Map<String,String> getFormattedTagsAsMap()
      The formatted tag values are displayed in JMX and log files. See MeterTag.getFormattedTag()
      Returns:
      the tags as a map with the tag keys as the keys and the formatted tag values as the values
    • getTag

      @Nullable public String getTag(String key)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object