|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.monitor.MonitorConfig.Builder
public static class MonitorConfig.Builder
A builder to assist in creating monitor config objects.
| Constructor Summary | |
|---|---|
MonitorConfig.Builder(MonitorConfig config)
Create a new builder initialized with the specified config. |
|
MonitorConfig.Builder(java.lang.String name)
Create a new builder initialized with the specified name. |
|
| Method Summary | |
|---|---|
MonitorConfig |
build()
Create the monitor config object. |
MonitorConfig.Builder |
withPublishingPolicy(PublishingPolicy policy)
Add the publishing policy to the config. |
MonitorConfig.Builder |
withTag(java.lang.String key,
java.lang.String val)
Add a tag to the config. |
MonitorConfig.Builder |
withTag(Tag tag)
Add a tag to the config. |
MonitorConfig.Builder |
withTags(java.util.Collection<Tag> tagCollection)
Add all tags in the list to the config. |
MonitorConfig.Builder |
withTags(TagList tagList)
Add all tags in the list to the config. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonitorConfig.Builder(MonitorConfig config)
public MonitorConfig.Builder(java.lang.String name)
| Method Detail |
|---|
public MonitorConfig.Builder withTag(java.lang.String key,
java.lang.String val)
public MonitorConfig.Builder withTag(Tag tag)
public MonitorConfig.Builder withTags(TagList tagList)
public MonitorConfig.Builder withTags(java.util.Collection<Tag> tagCollection)
public MonitorConfig.Builder withPublishingPolicy(PublishingPolicy policy)
public MonitorConfig build()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||