SignalFx Developers Guide

median()

Calculates the median of metric timeseries in the input stream

Syntax

Aggregation

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

median(over=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 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