pagerduty.actionFromLevel() function

pagerduty.actionFromLevel() converts a monitoring level to a PagerDuty action.

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



(Required) Monitoring level to convert to a PagerDuty action.


Convert a monitoring level to a PagerDuty action

import "pagerduty"

pagerduty.actionFromLevel(level: "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.