SignalFx Developers Guide

bottom()

Returns one of the following, depending on its parameters:

  • The lowest n number of values in the stream object on which it’s called

  • The percentage of low values in the stream object to return

Syntax

bottom(count=n, percentage=pct, by=grp)

Table 1. Parameter definitions
Parameter Type Description

n

integer. Default is None.

Optional: The n number of lowest metrics to pass through. This parameter is mutually exclusive with the percentage parameter.

pct

Decimal, 0.0 ≤ percentage ≤ 1.0. Default is None.

Optional: The percentage of low metrics to pass through, expressed as a decimal. This parameter is mutually exclusive with the count parameter.

by

string or array of strings. Default is None.

Optional: Names of properties with which to group the stream.

Examples

1
2
3
4
5
6
7
8
9
Returns a reference to the input _stream_ object.
#bottom 5 metrics
data('cpu.utilization').bottom(5)

#bottom 5 percent of the metrics, grouped by their `env` property
data('cpu.utilization').bottom(percentage=.05,by='env')

#bottom 10 metrics, grouped by their `env` and `datacenter` properties
data('cpu.utilization').bottom(10, by=['env','datacenter'])

© Copyright 2019 SignalFx.

Third-party license information