Documentation

pagerduty.actionFromSeverity() function

The pagerduty.actionFromSeverity() function converts a severity to a PagerDuty action. ok converts to resolve. All other severities convert to trigger.

import "pagerduty"

pagerduty.actionFromSeverity(severity: "ok")

// Returns "resolve"

Parameters

severity

The severity to convert to a PagerDuty action.


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.