%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/runners/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/runners/pagerduty.pyo

�
���^c@@sdZddlmZmZmZddlZddlZddlZddl	Zddl
mZd�Zddd�Zddd�Zddd�Zddd	�Zddd
�Zejjjed�Zddd�Zejjjed
�Zdddddd�ZdS(ul
Runner Module for Firing Events via PagerDuty

.. versionadded:: 2014.1.0

:configuration: This module can be used by specifying the name of a
    configuration profile in the master config.

    For example:

    .. code-block:: yaml

        my-pagerduty-account:
            pagerduty.api_key: F3Rbyjbve43rfFWf2214
            pagerduty.subdomain: mysubdomain
i(tabsolute_importtprint_functiontunicode_literalsN(tsixcC@stS(u>
    No dependencies outside of what Salt itself requires
    (tTrue(((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pyt__virtual__scC@s,tjjjddtd|�|dt�S(u�
    List services belonging to this account

    CLI Example:

        salt-run pagerduty.list_services my-pagerduty-account
    uservicesunameu
config.optiontopts(tsalttutilst	pagerdutyt
list_itemst__salt__t__opts__(tprofiletapi_key((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pyt
list_services#s
cC@s,tjjjddtd|�|dt�S(u�
    List incidents belonging to this account

    CLI Example:

        salt-run pagerduty.list_incidents my-pagerduty-account
    u	incidentsuidu
config.optionR(RRR	R
RR(R
R((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pytlist_incidents4s
cC@s,tjjjddtd|�|dt�S(u|
    List users belonging to this account

    CLI Example:

        salt-run pagerduty.list_users my-pagerduty-account
    uusersuidu
config.optionR(RRR	R
RR(R
R((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pyt
list_usersEs
cC@s,tjjjddtd|�|dt�S(u�
    List schedules belonging to this account

    CLI Example:

        salt-run pagerduty.list_schedules my-pagerduty-account
    u	schedulesuidu
config.optionR(RRR	R
RR(R
R((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pytlist_schedulesVs
cC@s,tjjjddtd|�|dt�S(u�
    List maintenance windows belonging to this account

    CLI Example:

        salt-run pagerduty.list_windows my-pagerduty-account
        salt-run pagerduty.list_maintenance_windows my-pagerduty-account
    umaintenance_windowsuidu
config.optionR(RRR	R
RR(R
R((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pytlist_windowsgs	
ulist_maintenance_windowscC@s,tjjjddtd|�|dt�S(u�
    List escalation policies belonging to this account

    CLI Example:

        salt-run pagerduty.list_policies my-pagerduty-account
        salt-run pagerduty.list_escalation_policies my-pagerduty-account
    uescalation_policiesuidu
config.optionR(RRR	R
RR(R
R((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pyt
list_policies}s	
ulist_escalation_policiescC@s�d}t|tj�rRtjjj|�}t|tj�rRi|d6}qRntjjjtjj	j
dddtd|�d|di|d	6|d
6dd6|d
6|d6d|dt��}|S(u`
    Create an event in PagerDuty. Designed for use in states.

    CLI Example:

    .. code-block:: yaml

        salt-run pagerduty.create_event <service_key> <description> <details>         profile=my-pagerduty-account

    The following parameters are required:

    service_key
        This key can be found by using pagerduty.list_services.

    description
        This is a short description of the event.

    details
        This can be a more detailed description of the event.

    profile
        This refers to the configuration profile to use to connect to the
        PagerDuty service.
    uAhttps://events.pagerduty.com/generic/2010-04-15/create_event.jsonudetailstmethoduPOSTtprofile_dictu
config.optionRtdatauservice_keyuincident_keyutriggeru
event_typeudescriptionturlR(
t
isinstanceRtstring_typesRRtyamlt	safe_loadtjsontloadsR	tqueryRR(tservice_keytdescriptiontdetailstincident_keyR
ttrigger_urltret((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pytcreate_event�s$
(t__doc__t
__future__RRRtsalt.utils.functoolsRtsalt.utils.jsontsalt.utils.pagerdutytsalt.utils.yamltsalt.extRRtNoneRRRRRRt	functoolstalias_functiontlist_maintenance_windowsRtlist_escalation_policiesR&(((s:/usr/lib/python2.7/site-packages/salt/runners/pagerduty.pyt<module>s"		

Zerion Mini Shell 1.0