Documentation

pagerduty.actionFromSeverity() function

pagerduty.actionFromSeverity() converts a severity to a PagerDuty action.

  • ok converts to resolve.
  • All other severities convert to trigger.
Function type signature
(severity: string) => string
For more information, see Function type signatures.

Parameters

severity

(Required) Severity to convert to a PagerDuty action.

Examples

Convert a severity to a PagerDuty action

import "pagerduty"

pagerduty.actionFromSeverity(severity: "crit")// Returns trigger

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.