pagerduty.actionFromSeverity() function
pagerduty.actionFromSeverity()
converts a severity to a PagerDuty action.
ok
converts toresolve
.- All other severities convert to
trigger
.
Function type signature
(severity: string) => string
Parameters
severity
(Required) Severity to convert to a PagerDuty action.
Examples
Convert a severity to a PagerDuty action
import "pagerduty"
pagerduty.actionFromSeverity(severity: "crit")// Returns trigger
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.