SignalFx Developers Guide

median()

Calculates the median of metric timeseries in the input stream

Syntax

Aggregation

median([by=grp])

Table 1. Parameter definitions
Parameter Type Description

grp

string or list of strings. Default is None.

Optional: Names of properties to group the output by

Transformation

median([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 calculate the median on the input

Both forms return a reference to the input stream object

Examples

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

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

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

© Copyright 2019 SignalFx.

Third-party license information