pushover
¶
Send notifications via Pushover.
Important
See Configuration for a description of available configuration parameters.
- saltext.pushover.modules.pushover_notify.post_message(user=None, device=None, message=None, title=None, priority=0, expire=None, retry=None, sound=None, api_version=1, token=None)[source]¶
Send a message to a Pushover user or group.
CLI Example:
salt '*' pushover.post_message user='uQiRzpo4DXghDmr9QzzfQu27cmVRsG' title='Message from Salt' message='Build is done' salt '*' pushover.post_message user='uQiRzpo4DXghDmr9QzzfQu27cmVRsG' title='Message from Salt' message='Build is done' priority='2' expire='720' retry='5'
- user
The user or group of users to send the message to. Must be a user/group ID (key), not a name or an email address. Required if not specified in the configuration.
- device
The name of the device to send the message to.
- message
The message to send to the Pushover user or group. Required.
- title
The message title to use. Defaults to
Message from SaltStack
.- priority
The priority of the message (integers between
-2
and2
). Defaults to0
.Note
Emergency priority (
2
) requiresexpire
andretry
parameters to be set.- expire
Stop notifying the user after the specified amount of seconds. The message is still shown after expiry.
- retry
Repeat the notification after this amount of seconds. Minimum:
30
.- sound
The notification sound to play.
- token
The authentication token to use for the Pushover API. Required if not specified in the configuration.