2022-02-14 16:09:31 +00:00
|
|
|
type: http # Don't change
|
|
|
|
name: http_default # Must match the registered plugin in the profile
|
2021-08-25 09:43:29 +00:00
|
|
|
|
2022-02-14 16:09:31 +00:00
|
|
|
# One of "trace", "debug", "info", "warn", "error", "off"
|
|
|
|
log_level: info
|
2021-08-25 09:43:29 +00:00
|
|
|
|
2022-02-14 16:09:31 +00:00
|
|
|
# group_wait: # Time to wait collecting alerts before relaying a message to this plugin, eg "30s"
|
|
|
|
# group_threshold: # Amount of alerts that triggers a message before <group_wait> has expired, eg "10"
|
|
|
|
# max_retry: # Number of attempts to relay messages to plugins in case of error
|
|
|
|
# timeout: # Time to wait for response from the plugin before considering the attempt a failure, eg "10s"
|
|
|
|
|
|
|
|
#-------------------------
|
|
|
|
# plugin-specific options
|
|
|
|
|
|
|
|
# The following template receives a list of models.Alert objects
|
|
|
|
# The output goes in the http request body
|
|
|
|
format: |
|
2021-08-25 09:43:29 +00:00
|
|
|
{{.|toJson}}
|
|
|
|
|
2022-02-14 16:09:31 +00:00
|
|
|
# The plugin will make requests to this url, eg: https://www.example.com/
|
|
|
|
url: <HTTP_url>
|
2021-08-25 09:43:29 +00:00
|
|
|
|
2022-02-14 16:09:31 +00:00
|
|
|
# Any of the http verbs: "POST", "GET", "PUT"...
|
|
|
|
method: POST
|
2021-08-25 09:43:29 +00:00
|
|
|
|
|
|
|
# headers:
|
|
|
|
# Authorization: token 0x64312313
|
|
|
|
|
2022-02-14 16:09:31 +00:00
|
|
|
# skip_tls_verification: # true or false. Default is false
|
2021-08-25 09:43:29 +00:00
|
|
|
|