Aggregation

Apply an aggregation function to the values of a metric.

This algorithm takes as inputs the values of a metric, and apply to them one of the following aggregation functions:

  • Minimum: the minimum value is returned.

  • Maximum: the maximum value is returned.

  • Average: the average value is returned.

Inputs

Here is the list of inputs required by this Algorithm.

INPUTS

Metric

The base metric whose values must be counted or summed.


Type: METRIC | Mandatory | Dataset Range: Last 24 hours

Function

The function used for the aggregation.


Type: SELECTION | Mandatory | Values:  MIN, MAX, AVG, DELTA

Outputs

Here is the list of outputs provided by this Algorithm.

OUTPUTS

Aggregation Result

The aggregation result.


Type: FLOAT

Insight Metric Configuration

To use this Algorithm in an Insight Metric, you need to:

  1. Go to the Insight / Insight Metrics page.

  2. Select the Thing Definitions tab.

  3. Select the Thing Definition where to create the insight metric.

  4. Click the Add Metric button.

  5. Select the Aggregation algorithm.

  6. Select the output for which you want to calculate the metric.