SignalFx Developers Guide

variance()

Calculates the variance of metrics in the input stream

Syntax

Aggregation

variance([by=grp])

Table 1. Parameter definitions
Parameter Type Description

grp

string or list of strings. Default is None.

Optional: Property names on which to group the results by

Transformation

variance([over=duration])

Table 2. Parameter definitions
Parameter Type Description

duration

Duration (number and duration units)
Durations are specified as a number followed by a single character:

  • s: seconds

  • m: minutes

  • h: hours

  • d: days

The default is None.

Optional: Duration over which to get the variance of the metrics in the input stream

Both forms return a reference to the input stream object.

Examples

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

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

#Transformation - cpu.utilization variance over the past 15 minutes
data('cpu.utilization').variance(over='15m')

© Copyright 2019 SignalFx.

Third-party license information