SignalFx Developers Guide

max()

Find the maximum value of the input stream.

Syntax

Aggregation

max(by=None)

Table 1. Parameter definitions
Parameter Type Description

by

string or list of strings

Optional, default=None. Names of properties to group by

Transformation

max(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 maximum of each input metric timeseris

Both forms return a reference to the input stream object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#Aggregation - max by env
data('cpu.utilization').max(by='env')

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

#Transformation - 30 minute max
data('cpu.utilization').max(over='30m')

#Transformation - Max over last day, starting at 6:00 AM
#Emit values during the period
data('cpu.utilization').max(cycle="day", cycle_start="06h", partial_values=True)

© Copyright 2019 SignalFx.

Third-party license information