opsgenie.respondersToJSON() function

Flux 0.84.0+

The opsgenie.respondersToJSON() function is a user-contributed function maintained by the package author and can be updated or removed at any time.

The opsgenie.respondersToJSON() function converts an array of Opsgenie responder strings to a string-encoded JSON array that can be embedded in an alert message.

import "contrib/sranka/opsgenie"

  v: [

// Returns "[
//   {"type":"user","username":"example-user"},
//   {"type":"team","name":"example-team"},
//   {"type":"escalation","name":"example-escalation"},
//   {"type":"schedule","name":"example-schedule"}
// ]"



(Required) Array of Opsgenie responder strings. Responder strings must begin with user:, team:, escalation:, or schedule:.

Package author and maintainer

Github: @sranka
InfluxDB Slack: @sranka

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.