public final class DynamicGauge extends java.lang.Object implements CompositeMonitor<java.lang.Long>
MonitorConfig
Gauges are automatically expired after 15 minutes of inactivity.| Modifier and Type | Method and Description |
|---|---|
MonitorConfig |
getConfig()
Configuration used to identify a monitor and provide metadata used in aggregations.
|
java.util.List<Monitor<?>> |
getMonitors()
Returns a list of sub-monitors for this composite.
|
java.lang.Long |
getValue()
Returns the current value for the monitor for the default polling interval.
|
java.lang.Long |
getValue(int pollerIndex)
Returns the current value for the monitor for the nth poller.
|
static void |
set(MonitorConfig config,
double value)
Set a gauge based on a given
MonitorConfig by a given value. |
static void |
set(java.lang.String name,
double value)
Increment a gauge specified by a name.
|
static void |
set(java.lang.String name,
TagList list,
double value)
Set the gauge for a given name, tagList by a given value.
|
java.lang.String |
toString() |
public static void set(MonitorConfig config, double value)
MonitorConfig by a given value.config - The monitoring configvalue - The amount added to the current valuepublic static void set(java.lang.String name,
double value)
public static void set(java.lang.String name,
TagList list,
double value)
public java.util.List<Monitor<?>> getMonitors()
getMonitors in interface CompositeMonitor<java.lang.Long>public java.lang.Long getValue()
public java.lang.Long getValue(int pollerIndex)
Monitorpublic MonitorConfig getConfig()
public java.lang.String toString()
toString in class java.lang.Object