public class AggregationTemplate<T> extends Object
A template for creating pre-computed aggregate metrics. Templates are used for tenant-level configuration. A template applies to all metrics (of the specified type) for a tenant. For example, suppose we create a template for gauge metrics to compute the max and min at an interval of 5 minutes. Then for every gauge metric aggregate metrics that consist of the max and min will be computed every 5 minutes.
There are a couple caveats with using templates. First, the input must be a raw metric, be it gauge, availability, or a log event. Secondly, the input source can only be a single metric.
| Constructor and Description |
|---|
AggregationTemplate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Set<String> |
getFunctions()
The functions to apply on the source data.
|
Interval |
getInterval()
How frequently the aggregate metrics created from this template should be
updated.
|
MetricType<T> |
getType()
The
type of metric to which the
template applies. |
int |
hashCode() |
AggregationTemplate<T> |
setFunctions(Set<String> functions) |
AggregationTemplate<T> |
setInterval(Interval interval) |
AggregationTemplate<T> |
setType(MetricType<T> type) |
String |
toString() |
public MetricType<T> getType()
type of metric to which the
template applies.public AggregationTemplate<T> setType(MetricType<T> type)
public Interval getInterval()
public AggregationTemplate<T> setInterval(Interval interval)
public Set<String> getFunctions()
public AggregationTemplate<T> setFunctions(Set<String> functions)
Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.