pagerduty.severityFromLevel() function
pagerduty.severityFromLevel()
converts an InfluxDB status level to a PagerDuty severity.
Status level | PagerDuty severity |
---|---|
crit | critical |
warn | warning |
info | info |
ok | info |
Function type signature
(level: string) => string
Parameters
level
(Required) InfluxDB status level to convert to a PagerDuty severity.
Examples
Convert a status level to a PagerDuty severity
import "pagerduty"
pagerduty.severityFromLevel(level: "crit")// Returns critical
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.