pagerduty.actionFromSeverity() function
The pagerduty.actionFromSeverity()
function converts a severity to a PagerDuty action.
ok
converts to resolve
.
All other severities convert to trigger
.
import "pagerduty"
pagerduty.actionFromSeverity(severity: "ok")
// Returns "resolve"
Parameters
severity
The severity to convert to a PagerDuty action.
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.