diff --git a/Notify_opsgenie.md b/Notify_opsgenie.md index 78d37c6..0f2fa1a 100644 --- a/Notify_opsgenie.md +++ b/Notify_opsgenie.md @@ -43,8 +43,25 @@ You can also mix/match the targets: #### Example Send a Opsgenie notification to all devices associated with a project: ```bash -# Assume: -# - our {apikey} is a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty +# Assuming our {apikey} is a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty apprise -vv -t "Test Message Title" -b "Test Message Body" \ 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" +```