pagerduty.actionFromSeverity() function
The pagerduty.actionFromSeverity()
function converts a severity to a PagerDuty action.
ok
converts to resolve
.
All other severities convert to trigger
.
Function type: Transformation
import "pagerduty"
pagerduty.actionFromSeverity(
severity: "ok"
)
// Returns "resolve"
Parameters
severity
The severity to convert to a PagerDuty action.
Data type: String
Function definition
import "strings"
actionFromSeverity = (severity) =>
if strings.toLower(v: severity) == "ok" then "resolve"
else "trigger"
Bug Reports and Feedback
Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation. Submit feedback using one of the following methods:
- Post in the InfluxData Community
- In the InfluxDB UI, click Feedback in the left navigation bar.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.