%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/pagerduty.pyo |
� ���^c @@ s8 d Z d d l m Z m Z m Z d � Z d � Z d S( u� Create an Event in PagerDuty ============================ .. versionadded:: 2014.1.0 This state is useful for creating events on the PagerDuty service during state runs. .. code-block:: yaml server-warning-message: pagerduty.create_event: - name: 'This is a server warning message' - details: 'This is a much more detailed message' - service_key: 9abcd123456789efabcde362783cdbaf - profile: my-pagerduty-account i ( t absolute_importt print_functiont unicode_literalsc C@ s d t k r d St S( uD Only load if the pygerduty module is available in __salt__ u pagerduty.create_eventu pagerduty( t __salt__t False( ( ( s9 /usr/lib/python2.7/site-packages/salt/states/pagerduty.pyt __virtual__ s c C@ s� i | d 6i d 6d d 6d d 6} t d rC d j | � | d <| St d d | d | d | d | � t | d <d j | � | d <| S( u� Create an event on the PagerDuty service .. code-block:: yaml server-warning-message: pagerduty.create_event: - name: 'This is a server warning message' - details: 'This is a much more detailed message' - service_key: 9abcd123456789efabcde362783cdbaf - profile: my-pagerduty-account The following parameters are required: name This is a short description of the event. details This can be a more detailed description of the event. service_key This key can be found by using pagerduty.list_services. profile This refers to the configuration profile to use to connect to the PagerDuty service. u nameu changesu resultu u commentu testu Need to create event: {0}u pagerduty.create_eventt descriptiont detailst service_keyt profileu Created event: {0}N( t Nonet __opts__t formatR t True( t nameR R R t ret( ( s9 /usr/lib/python2.7/site-packages/salt/states/pagerduty.pyt create_event s N( t __doc__t __future__R R R R R ( ( ( s9 /usr/lib/python2.7/site-packages/salt/states/pagerduty.pyt <module> s