|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.servo.monitor.DynamicCounter
public class DynamicCounter
Utility class that dynamically creates counters based on an arbitrary (name, tagList), or MonitorConfig
Counters are automatically expired after 15 minutes of inactivity.
Method Summary | |
---|---|
MonitorConfig |
getConfig()
Configuration used to identify a monitor and provide metadata used in aggregations. |
java.util.List<Monitor<?>> |
getMonitors()
|
java.lang.Long |
getValue()
Returns the current value for the monitor. |
static void |
increment(MonitorConfig config)
Increment a counter based on a given MonitorConfig . |
static void |
increment(MonitorConfig config,
long delta)
Increment a counter based on a given MonitorConfig by a given delta. |
static void |
increment(java.lang.String name,
java.lang.String... tags)
Increment a counter specified by a name, and a sequence of (key, value) pairs |
static void |
increment(java.lang.String name,
TagList list)
Increment the counter for a given name, tagList |
static void |
increment(java.lang.String name,
TagList list,
long delta)
Increment the counter for a given name, tagList by a given delta. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static void increment(MonitorConfig config)
MonitorConfig
.
public static void increment(java.lang.String name, java.lang.String... tags)
public static void increment(MonitorConfig config, long delta)
MonitorConfig
by a given delta.
config
- The monitoring configdelta
- The amount added to the current valuepublic static void increment(java.lang.String name, TagList list)
public static void increment(java.lang.String name, TagList list, long delta)
public java.util.List<Monitor<?>> getMonitors()
getMonitors
in interface CompositeMonitor<java.lang.Long>
public java.lang.Long getValue()
getValue
in interface Monitor<java.lang.Long>
public MonitorConfig getConfig()
getConfig
in interface Monitor<java.lang.Long>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |