SignalFx Developers Guide

mean()

Calculates the mean of metric timeseries in the input stream

Syntax

Aggregation

mean(by=None)

Table 1. Parameter definitions
Parameter Type Description

by

string or list of strings

Optional, default=None. Names of properties to group the output by

Transformation

mean(over=None)

Table 2. Parameter definitions
Parameter Type Description

over

Duration (number and duration units indicator: "s" = seconds, "m" = minutes, "h" = hours)

Duration over which to get the mean of each input metric timeseries

Both forms return a reference to the input stream object.

Examples

1
2
3
4
5
6
7
8
#Aggregation - mean by env
data('cpu.utilization').mean(by='env')

#Aggregation - mean by env and datacenter
data('cpu.utilization').mean(by=['env', 'datacenter'])

#Transformation - mean over 1 hour
data('cpu.utilization').mean(over='1h')

© Copyright 2019 SignalFx.

Third-party license information