Updated Notify_opsgenie (markdown)

master
Chris Caron 2020-12-30 16:25:10 -05:00
parent e7f2365b25
commit 8ca6f40e51
1 changed files with 19 additions and 2 deletions

@ -43,8 +43,25 @@ You can also mix/match the targets:
#### Example #### Example
Send a Opsgenie notification to all devices associated with a project: Send a Opsgenie notification to all devices associated with a project:
```bash ```bash
# Assume: # Assuming our {apikey} is a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty
# - our {apikey} is a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty
apprise -vv -t "Test Message Title" -b "Test Message Body" \ apprise -vv -t "Test Message Title" -b "Test Message Body" \
opsgenie://a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty opsgenie://a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty
``` ```
### Include Details (Key/Value Pairs)
Opsgenie allows you to provide details composed of key/value pairs you can set with messages. This can be accomplished by just sticking a plus symbol (**+**) in front of any parameter you specify on your URL string.
```bash
# Below would set the key/value pair of foo=bar:
# Assuming our {apikey} is a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"opsgenie://a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty/?+foo=bar"
# Multiple key/value pairs just require more entries:
# Below would set the key/value pairs of:
# foo=bar
# apprise=awesome
#
# Assuming our {apikey} is a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"opsgenie://a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty/?+foo=bar&+apprise=awesome"
```