SignalFx Developers Guide

publish()

(stream method)

Publish the output of a detect stream so that other functions can use it.

Syntax

publish(label)

Parameters

Table 1. Parameter definitions
Parameter Type Description

label

string

Required: Added as a property in the form "label": "label", to all the events in the published stream. Use this label to tie a chart or detector to a stream.

Returns reference to the input detect object.

1
2
3
4
#Send an "anomalous" event when cpu.utilization is greater than 50 for 5 minutes
#Only send an "ok" event when cpu.utilization goes below 40 for 10 minutes
cpu = data('cpu.utilization')
detect(when(cpu > 50, '5m'), off=when(cpu < 40, '10m')).publish('cpu_too_high')

© Copyright 2019 SignalFx.

Third-party license information