public class MetricNameTemplate
extends java.lang.Object
Constructor | Description |
---|---|
MetricNameTemplate(java.lang.String name,
java.lang.String group,
java.lang.String description,
java.lang.String... tagsNames) |
Create a new template.
|
MetricNameTemplate(java.lang.String name,
java.lang.String group,
java.lang.String description,
java.util.Set<java.lang.String> tagsNames) |
Create a new template.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
description() |
Get the description of the metric.
|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
group() |
Get the name of the group.
|
int |
hashCode() |
|
java.lang.String |
name() |
Get the name of the metric.
|
java.util.Set<java.lang.String> |
tags() |
Get the set of tag names for the metric.
|
java.lang.String |
toString() |
public MetricNameTemplate(java.lang.String name, java.lang.String group, java.lang.String description, java.util.Set<java.lang.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(java.lang.String name, java.lang.String group, java.lang.String description, java.lang.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 java.lang.String name()
public java.lang.String group()
public java.lang.String description()
public java.util.Set<java.lang.String> tags()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object