pagerduty.actionFromSeverity() function

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

Function type: Transformation

import "pagerduty"

  severity: "ok"

// Returns "resolve"



The severity to convert to a PagerDuty action.

Data type: String

Function definition

import "strings"

actionFromSeverity = (severity) =>
  if strings.toLower(v: severity) == "ok" then "resolve"
  else "trigger"

Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: