Class MeterTag
java.lang.Object
com.atlassian.diagnostics.ipd.api.MeterTag
Represents a tag for a meter.
A tag consists of a key-value pair, where both the key and value are strings.
This class provides methods to retrieve the key and value, as well as to format the tag.
Use the
of(String, String) method to create a new MeterTag.- Since:
- 5.0.0
-
Method Details
-
getKey
-
getValue
-
getFormattedTag
Returns a new MeterTag with the key and value formatted to replace spaces with underscores. This is useful for displaying the tag in JMX and log files.- Returns:
- a new MeterTag with the key and value formatted to replace spaces with underscores
-
of
Creates a new MeterTag with the given key and value.- Parameters:
key- the key of the tagvalue- the value of the tag- Returns:
- a new MeterTag with the given key and value
-
equals
-
hashCode
public int hashCode() -
toString
-