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