SignalFx Developers Guide

above()

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

Syntax

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

Table 1. Parameter definitions
Parameter Type Description

limit

Number

The method only passes through metric values that are above this limit, or it changes data below 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 above the limit.

clamp

boolean

Indicates how the method should handle values that are below limit. The following rules apply: * clamp = true: When a metric is below limit, it’s passed on as limit; otherwise it’s not passed on * clamp = false: When a metric is below 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 above 10
data('cpu.utilization').above(10).publish()

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

© Copyright 2019 SignalFx.

Third-party license information