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
For more information, see Function type signatures.



(Required) InfluxDB status level to convert to a PagerDuty severity.


Convert a status level to a PagerDuty serverity

import "pagerduty"

pagerduty.severityFromLevel(level: "crit")// Returns critical

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.