SignalFx Developers Guide

floor()

Find the floor value of input.

Syntax

floor(inputstream)

Table 1. Parameter definitions
Parameter Type Description

inputstream

input stream

Stream of data values

Returns a new stream object with the floor of the input.

Examples

1
2
3
4
5
6
7
#Find the floor of the percentage of cpu.idle to all cpu metrics
idle = data('cpu.idle')
all = data('cpu.*').sum()
value = floor(idle/all * 100).publish()

#Find floor percentage of the rate of change
value = data('cpu.idle').rateofchange().map(lambda x:floor(x*100)).mean().publish()

© Copyright 2019 SignalFx.

Third-party license information