V - the type of value that is fed into the metricQ - the type returned for quantiles@ThingworxExtensionApiClass(since={8,1,1}) public interface IStatisticBuilder<V,Q>
| Modifier and Type | Method and Description |
|---|---|
IStatistic<V,Q> |
expDecay(java.lang.String key)
Returns a statistical metric that uses an exponential decay algorithm to weigh metrics more heavily towards newer data points. |
IStatistic<V,Q> |
lastN(java.lang.String key,
int n)
Returns a metric that only tracks the last N measurements provided, where N ≤ 500. |
IStatistic<V,Q> |
uniform(java.lang.String key)
Returns a uniformly-distributed metric. |
@ThingworxExtensionApiMethod(since={8,1,1}) IStatistic<V,Q> uniform(java.lang.String key)
key - the metric key@ThingworxExtensionApiMethod(since={8,1,1}) IStatistic<V,Q> expDecay(java.lang.String key)
key - the metric key@ThingworxExtensionApiMethod(since={8,1,1}) IStatistic<V,Q> lastN(java.lang.String key, int n)
key - the metric keyn - the number of values to track