Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
MetricDescription com.griddynamics.jagger.engine.e1.collector.MetricDescription.addAggregator ( MetricAggregatorProvider  aggregator)

Append new aggregator to list of metric aggregator.

Parameters
aggregator- aggregators that will be applied to this metric during result processing.
You can use Jagger built in aggregators Aggregators implementations and examples or custom aggregator
Returns
this MetricDescription

Definition at line 132 of file MetricDescription.java.

References com.griddynamics.jagger.engine.e1.collector.MetricDescription.aggregatorsWithSettings, and com.griddynamics.jagger.engine.e1.collector.MetricAggregatorSettings.EMPTY_SETTINGS.

132  {
133  this.aggregatorsWithSettings.put(aggregator, MetricAggregatorSettings.EMPTY_SETTINGS);
134  return this;
135  }