SignalFx Developers Guide

sum()

Calculates the sum of each metric timeseries in the input stream

Syntax

Aggregation

sum(by=None)

Table 1. Parameter definitions
Parameter Type Description

by

string or list of strings

Names of properties to group the results by

Transformation

sum(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 calculate the sume of each input metric timeseries

Both forms return a reference to the input stream object.

Examples

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

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

#Transformation - sum over 1 hour
data('memory.utilization').sum(over='1h')

© Copyright 2019 SignalFx.

Third-party license information