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=include_flag][,clamp=clamp_flag])

Table 1. Parameter definitions
Parameter Type Description

limit

Number

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

include_flag

boolean. Default is False.

Optional: 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_flag

boolean. Default is False.

Optional: 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 below 60 to 60
data('cpu.utilization').above(60, clamp=True).publish()

© Copyright 2019 SignalFx.

Third-party license information