public class MetricNameTemplate extends Object
Constructor and Description |
---|
MetricNameTemplate(String name,
String group,
String description,
Set<String> tagsNames)
Create a new template.
|
MetricNameTemplate(String name,
String group,
String description,
String... tagsNames)
Create a new template.
|
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description of the metric.
|
boolean |
equals(Object o) |
String |
group()
Get the name of the group.
|
int |
hashCode() |
String |
name()
Get the name of the metric.
|
Set<String> |
tags()
Get the set of tag names for the metric.
|
String |
toString() |
public MetricNameTemplate(String name, String group, String description, Set<String> tagsNames)
tagsNames
set has an order.name
- the name of the metric; may not be nullgroup
- the name of the group; may not be nulldescription
- the description of the metric; may not be nulltagsNames
- the set of metric tag names, which can/should be a set that maintains order; may not be nullpublic MetricNameTemplate(String name, String group, String description, String... tagsNames)
name
- the name of the metric; may not be nullgroup
- the name of the group; may not be nulldescription
- the description of the metric; may not be nulltagsNames
- the names of the metric tags in the preferred order; none of the tag names should be nullpublic String name()
public String group()
public String description()
public Set<String> tags()