Class Tags
java.lang.Object
org.opensearch.telemetry.metrics.tags.Tags
Class to create tags for a meter.
- Opensearch.experimental:
-
Field Details
-
EMPTY
Empty value.
-
-
Method Details
-
create
Factory method.- Returns:
- tags.
-
addTag
Add String attribute.- Parameters:
key- keyvalue- value- Returns:
- Same instance.
-
addTag
Add long attribute.- Parameters:
key- keyvalue- value- Returns:
- Same instance.
-
addTag
Add double attribute.- Parameters:
key- keyvalue- value- Returns:
- Same instance.
-
addTag
Add boolean attribute.- Parameters:
key- keyvalue- value- Returns:
- Same instance.
-
getTagsMap
Returns the attribute map.- Returns:
- tags map
-