SignalFx Developers Guide

variance()

Calculates the variance of metrics in the input stream

Syntax

Aggregation

variance(by=None)

Table 1. Parameter definitions
Parameter Type Description

by

string or list of strings

Optional, default=None. Property names on which to group the results by

Transformation

variance(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 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