403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/pagerduty.cpython-310.pyc
o

;j��@s�dZddlZddlZddlZdd�Zddd�Zddd�Zdd	d
�Zddd�Z	dd
d�Z
ejj�
e
d�Zddd�Zejj�
ed�Z	ddd�ZdS)a�
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
�NcCsdS)z>
    No dependencies outside of what Salt itself requires
    T�rrr�J/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/pagerduty.py�__virtual__srcC� tjjjddtd|�|td�S)z�
    List services belonging to this account

    CLI Example:

    .. code-block:: bash

        salt myminion pagerduty.list_services my-pagerduty-account
    Zservices�name�
config.option��opts��salt�utils�	pagerdutyZ
list_items�__salt__�__opts__��profile�api_keyrrr�
list_services�
�rcCr)z�
    List incidents belonging to this account

    CLI Example:

    .. code-block:: bash

        salt myminion pagerduty.list_incidents my-pagerduty-account
    Z	incidents�idrrr
rrrr�list_incidents.rrcCr)z�
    List users belonging to this account

    CLI Example:

    .. code-block:: bash

        salt myminion pagerduty.list_users my-pagerduty-account
    Zusersrrrr
rrrr�
list_users=rrcCr)z�
    List schedules belonging to this account

    CLI Example:

    .. code-block:: bash

        salt myminion pagerduty.list_schedules my-pagerduty-account
    Z	schedulesrrrr
rrrr�list_schedulesLrrcCr)z�
    List maintenance windows belonging to this account

    CLI Example:

    .. code-block:: bash

        salt myminion pagerduty.list_windows my-pagerduty-account
        salt myminion pagerduty.list_maintenance_windows my-pagerduty-account
    Zmaintenance_windowsrrrr
rrrr�list_windows[�
�r�list_maintenance_windowscCr)z�
    List escalation policies belonging to this account

    CLI Example:

    .. code-block:: bash

        salt myminion pagerduty.list_policies my-pagerduty-account
        salt myminion pagerduty.list_escalation_policies my-pagerduty-account
    Zescalation_policiesrrrr
rrrr�
list_policiesurr�list_escalation_policiescCsjd}t|t�rtjj�|�}t|t�rd|i}tjj�tjjj	dt
d|�|||d||d�|td��}|S)ae
    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.
    zAhttps://events.pagerduty.com/generic/2010-04-15/create_event.json�details�POSTrZtrigger)�service_key�incident_keyZ
event_type�descriptionr)�methodZprofile_dictr�data�urlr	)�
isinstance�strrrZyamlZ	safe_load�json�loadsr
�queryrr)r r"rr!rZtrigger_url�retrrr�create_event�s*


���r,)NN)NNNNN)�__doc__Zsalt.utils.functoolsrZsalt.utils.jsonZsalt.utils.pagerdutyrrrrrrr�	functoolsZalias_functionrrrr,rrrr�<module>s&




�
��

Youez - 2016 - github.com/yon3zu
LinuXploit