docs-v2/content/flux/v0/stdlib/pagerduty/severityfromlevel.md

1.7 KiB

title description menu weight
pagerduty.severityFromLevel() function `pagerduty.severityFromLevel()` converts an InfluxDB status level to a PagerDuty severity.
flux_v0_ref
name parent identifier
pagerduty.severityFromLevel pagerduty pagerduty/severityFromLevel
101

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

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}

Parameters

level

({{< req >}}) 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