Package org.eclipse.microprofile.metrics
Class Tag
java.lang.Object
org.eclipse.microprofile.metrics.Tag
Tag represents a singular metric tag key and value pair.
The Tag contains:
-
TagName
: (Required) The name of the tag. Must match the regex [a-zA-Z_][a-zA-Z0-9_]*. -
TagValue
: (Required) The value of the tag.
-
Constructor Details
-
Tag
Constructs the Tag object with the given tag name and tag value- Parameters:
tagName
- The tag name, must match the regex [a-zA-Z_][a-zA-Z0-9_]*.tagValue
- The tag value- Throws:
IllegalArgumentException
- If the tagName does not match [a-zA-Z_][a-zA-Z0-9_]*
-
-
Method Details