Support for VictorOps
2015.8.0 新版功能.
Requires an api_key
in /etc/salt/minion
:
salt.modules.victorops.
create_event
(message_type=None, routing_key='everybody', **kwargs)¶Create an event in VictorOps. Designed for use in states.
The following parameters are required:
参数: | message_type -- One of the following values: INFO, WARNING, ACKNOWLEDGEMENT, CRITICAL, RECOVERY. |
---|
The following parameters are optional:
参数: |
|
---|
:param timestamp_fmt The date format for the timestamp parameter.
参数: |
|
---|---|
返回: | A dictionary with result, entity_id, and message if result was failure. |
CLI Example:
salt myminion victorops.create_event message_type='CRITICAL' routing_key='everyone' entity_id='hostname/diskspace'
salt myminion victorops.create_event message_type='ACKNOWLEDGEMENT' routing_key='everyone' entity_id='hostname/diskspace' ack_message='Acknowledged' ack_author='username'
salt myminion victorops.create_event message_type='RECOVERY' routing_key='everyone' entity_id='hostname/diskspace'