Package com.thingworx.metrics
Interface IStatistic<V,Q>
- All Superinterfaces:
IMetric
A metric that tracks statistical information for numeric values.
Statistic metrics are tracked via a histogram. Values fed into the histogram are sorted into quantiles and tracked by counts; as a result, the raw values are not stored and cannot be retrieved. Typical statistical information is available, including min/mean/max values, as well as a standard set of percentiles.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final String
static final String
Fields inherited from interface com.thingworx.metrics.IMetric
METRIC_TYPE, VALUE, VALUE_TYPE
-
Method Summary
-
Field Details
-
QUANTILE_TYPE
- See Also:
-
STATISTIC_TYPE
- See Also:
-
N
- See Also:
-
DEFAULT_N
static final int DEFAULT_N- See Also:
-
-
Method Details
-
update
Updates the statistical data with the provided value.- Parameters:
value
- the value to add
-
update
Updates the statistical data with the provided value with optional persistence- Parameters:
value
- the value to addpersist
- whether or not to persist the statistical data
-
snapshot
-