pagerduty.actionFromLevel() function
pagerduty.actionFromLevel()
converts a monitoring level to a PagerDuty action.
ok
converts toresolve
.- All other levels convert to
trigger
.
Function type signature
(level: string) => string
Parameters
level
(Required) Monitoring level to convert to a PagerDuty action.
Examples
Convert a monitoring level to a PagerDuty action
import "pagerduty"
pagerduty.actionFromLevel(level: "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.