SignalFx Developers Guide

equals()

Only pass through data in the stream that’s equal to a particular value, or replace data that’s not equal to a particular value with another value

Syntax

equals(value [,replacement=repl_value])

Table 1. Parameter definitions
Parameter Type Description

value

number

Required: The value to filter for

repl_value

number. Default is None.

Optional: If you specify a value other than None, data that’s not equal to value is replaced with replacement. If you specify None, then data that’s not equal to value is not passed through.

Returns a reference to the input stream object.

Examples

1
2
3
4
5
#Only publish data when cpu.utilization is 100%
data('cpu.utilization').equals(100).publish()

#Replace non-0 cpu.utilization with 1 so that cpu.utilization is either 0 or 1
data('cpu.utilization').equals(0, 1).publish()

© Copyright 2019 SignalFx.

Third-party license information