SignalFx Developers Guide

sqrt()

Find the square root of input.

Syntax

sqrt(inputstream)

Table 1. Parameter definitions
Parameter Type Description

inputstream

stream

The input stream

Returns a new stream object with the square root of the input.

Examples

1
2
3
4
5
6
#Find the square root of the number of requests
num_requests = data('num.requests')
sqrt(num_requests).publish()

#Find the square root of the median across data centers
data('num.requests').median(by='datacenter').map(lambda x:sqrt(x)).publish()

© Copyright 2019 SignalFx.

Third-party license information