File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/opsgenie.cpython-310.pyc
o
�N�g[
� @ sB d Z ddlZddlZddlZddlZdZe�e�Z ddd�Z
dS )a
Module for sending data to OpsGenie
.. versionadded:: 2018.3.0
:configuration: This module can be used in Reactor System for
posting data to OpsGenie as a remote-execution function.
For example:
.. code-block:: yaml
opsgenie_event_poster:
local.opsgenie.post_data:
- tgt: 'salt-minion'
- kwarg:
name: event.reactor
api_key: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
reason: {{ data['data']['reason'] }}
action_type: Create
� Nz"https://api.opsgenie.com/v2/alerts�OpsGenie Execution Modulec C sV | du s|du rt j�d��t� }||d<