File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/pagerduty_escalation_policy.cpython-310.pyc
Back
o ;j� � @ s4 d Z dd� Zd dd�Zd dd�Zd d � Zdd� ZdS )ak Manage PagerDuty escalation policies. Schedules and users can be referenced by pagerduty ID, or by name, or by email address. For example: .. code-block:: yaml ensure test escalation policy: pagerduty_escalation_policy.present: - name: bruce test escalation policy - escalation_rules: - targets: - type: schedule id: 'bruce test schedule level1' - type: user id: 'Bruce Sherrod' escalation_delay_in_minutes: 15 - targets: - type: schedule id: 'bruce test schedule level2' escalation_delay_in_minutes: 15 - targets: - type: user id: 'Bruce TestUser1' - type: user id: 'Bruce TestUser2' - type: user id: 'Bruce TestUser3' - type: user id: 'bruce+test4@lyft.com' escalation_delay_in_minutes: 15 c C s dt v rdS dS )zD Only load if the pygerduty module is available in __salt__ �pagerduty_util.get_resourceZpagerduty_escalation_policy)Fz)pagerduty_util module could not be loaded��__salt__� r r �[/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/pagerduty_escalation_policy.py�__virtual__&