SignalFx Developers Guide

sample_variance()

Calculates the sample variance of inputs in the stream. This is less biased than total variance when you have a small population.

Syntax

Aggregation

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

sample_variance(over=None)

sample_variance(by=None)

Table 2. Parameter definitions
Parameter Type Description

over

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

Optional, default=None. Duration over which to get the sample variance of the input metrics

Both forms return a reference to the input stream object.

Examples

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

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

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

© Copyright 2019 SignalFx.

Third-party license information