SignalFx Developers Guide

count()

Counts the number of inputs that have data

Syntax

Aggregation

count(by=None)

Table 1. Parameter definitions
Parameter Type Description

by

a string or array of strings

Name of a property or properties to group the output by

Transformation

count(over=None)

Table 2. Parameter definitions
Parameter Type Description

over

integer

Duration over which to count inputs

Returns a reference to the input stream object.

Examples

1
2
3
4
5
6
7
#Aggregation - count by env
data('cpu.utilization').count(by='env')
#Aggregation - count by env and datacenter
data('cpu.utilization').count(by=['env', 'datacenter'])

#Transformation - count cpu.utilization timeseries that have reported over 1 hour
data('cpu.utilization').count(over='1h')

© Copyright 2019 SignalFx.

Third-party license information