1.7 KiB
1.7 KiB
title | description | menu | weight | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
pagerduty.severityFromLevel() function | `pagerduty.severityFromLevel()` converts an InfluxDB status level to a PagerDuty severity. |
|
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