SignalFx Developers Guide

count()

(stream method)

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

Syntax

count(by=[ <event_names> | None)

Parameters

Table 1. Parameter definitions
Parameter Type Description

by

*string * array of strings * 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. The default is "None".

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