SignalFx Developers Guide

below()

Only pass through data in the input stream that’s below the specified value, or change data below a specified value to that value.

Syntax

below(limit, inclusive=False, clamp=False)

Table 1. Parameter definitions
Parameter Type Description

limit

Number

The method only passes through metric values that are below this limit, or it changes data above the limit to limit.

inclusive

boolean

Indicates if the value of limit itself is included in the filter. If false, the filter is only for values that are strictly below the limit.

clamp

boolean

Indicates how the method should handle values that are above limit. The following rules apply: * clamp = true: When a metric is above limit, it’s passed on as limit; otherwise it’s not passed on * clamp = false: When a metric is above limit, it’s not passed on; otherwise it’s passed on.

Returns a reference to the input stream object.

Examples

1
2
3
4
5
#Only publish data when cpu.utilization is below 70
data('cpu.utilization').below(70).publish()

#Clamp cpu.utilization over 5 to 5
data('cpu.utilization').below(5, clamp=True).publish()

© Copyright 2019 SignalFx.

Third-party license information