content/flux/v0/stdlib/pagerduty/actionfromseverity.md
pagerduty.actionFromSeverity() converts a severity to a PagerDuty action.
ok converts to resolve.trigger.(severity: string) => string
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Severity to convert to a PagerDuty action.
import "pagerduty"
pagerduty.actionFromSeverity(severity: "crit")// Returns trigger