T - the data type stored by this gauge@ThingworxExtensionApiClass(since={8,1,1}) public interface IGauge<T> extends IMetric
METRIC_TYPE, VALUE, VALUE_TYPE| Modifier and Type | Method and Description |
|---|---|
T |
get()
Retrieves the current value of the gauge. |
void |
set(T value)
Assigns a new value to the gauge |
void |
set(T value,
boolean persist)
Assigns a new value to the gauge with optional persistence |
@ThingworxExtensionApiMethod(since={8,3}) T get()
@ThingworxExtensionApiMethod(since={8,1,1}) void set(T value)
value - the new value@ThingworxExtensionApiMethod(since={8,3}) void set(T value, boolean persist)
value - the new valuepersist - whether or not to persist the gauge data