public final class MonitorConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MonitorConfig.Builder
A builder to assist in creating monitor config objects.
|
Modifier and Type | Method and Description |
---|---|
static MonitorConfig.Builder |
builder(java.lang.String name)
Return a builder instance with the specified name.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name of the metric.
|
PublishingPolicy |
getPublishingPolicy()
Returns the publishing policy.
|
TagList |
getTags()
Returns the tags associated with the metric.
|
int |
hashCode()
This class is immutable so we cache the hash code after the first time it is computed.
|
java.lang.String |
toString() |
MonitorConfig |
withAdditionalTag(Tag tag)
Returns a copy of the monitor config with an additional tag.
|
MonitorConfig |
withAdditionalTags(TagList newTags)
Returns a copy of the monitor config with additional tags.
|
public static MonitorConfig.Builder builder(java.lang.String name)
public java.lang.String getName()
public TagList getTags()
public PublishingPolicy getPublishingPolicy()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public MonitorConfig withAdditionalTag(Tag tag)
public MonitorConfig withAdditionalTags(TagList newTags)