SignalFx Developers Guide

count()

(Stream method version)

Aggregation method that counts the number of events in the stream.

Syntax

count([by=grp])

Parameters

Table 1. Parameter definitions
Parameter Type Description

grp

string or array of strings. Default is None.

Groups the result by the event properties specified. Each string is the name of an event property. Use None to specify you don’t want any grouping.

For example:

1
2
#Summarizes fire/clear events generated by the detect condition
detect(data('cpu.utilization') > 75).count(by='is').publish()

© Copyright 2019 SignalFx.

Third-party license information