SignalFx Developers Guide

not_equals()

Only pass through data in the input stream that isn’t equal to a specified value, or replace data that’s equal to a specified value with another value

Syntax

not_equals(value, replacement=None)

Table 1. Parameter definitions
Parameter Type Description

value

number

The value to compare to metric timeseries in the input stream. The metric timeseries is only passed through if it doesn’t match.

replacement

number

Optional, default=None. If specified, input stream data that’s equal to value is replaced with replacement, otherwise the matched data 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 not 0
data('cpu.utilization').not_equals(0).publish()

#Replace 0 cpu.utilization with 1 so cpu.utilization is between 1-100%
data('cpu.utilization').not_equals(0, 1).publish()

© Copyright 2019 SignalFx.

Third-party license information