Documentation

pagerduty.severityFromLevel() function

pagerduty.severityFromLevel() converts an InfluxDB status level to a PagerDuty severity.

Status levelPagerDuty severity
critcritical
warnwarning
infoinfo
okinfo
Function type signature
(level: string) => string
For more information, see Function type signatures.

Parameters

level

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

Examples

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!


Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.