With Sym and PagerDuty, you can take advantage of your existing Incident Response workflows to speed up break-glass escalations in a secure way, and tie access requests to incidents for better auditability.
Common uses of the PagerDuty Integration include checking if a User is on call for conditional logic, and routing requests to individuals on call for a certain schedule.
You'll need to get PagerDuty Integrated before using it in your workflows.
This section is for Sym Implementers!
If your PagerDuty Integration has not yet been set up, please point your Integrator to Setup PagerDuty.
The PagerDuty Integration is defined at
You can use information about oncalls in your Flows.
from sym.sdk.annotations import hook, reducer from sym.sdk.integrations import pagerduty, slack @reducer def get_approvers(evt): # In this example, being on call allows for self-approvals. # This branch is triggered if the User is on call # in any escalation policy of the PagerDuty account if pagerduty.is_on_call(evt.user): # This is a self-approval in a DM return slack.user(evt.user)
from sym.sdk.annotations import hook, reducer from sym.sdk.integrations import pagerduty, slack @reducer def get_approvers(evt): # In this example, the manager schedule is fetched, # and every User currently on call is put in a group # to approve the request. on_call_mgrs = pagerduty.users_on_call(escalation_policy_name="mgr_on_call") return slack.group(on_call_mgrs)
Updated 7 months ago