Generic Hook¶
Send alert to any HTTP endpoint via POST request.
Config¶
webhooks:
generic_hook:
type: generic # required
url: https://example.com/webhook # required
headers: # optional default({})
Authorization: 'Bearer token'
verify: false # optional default(false)
timeout: 10 # optional default(10)
template: '{"rule": {{ rule | tojson }}, "data": {{ data | tojson }}, "detector": {{ detector | tojson }} }' # optional default(DEFAULT_TEMPLATE)
Notes¶
- If no
content-typeheader is provided, it defaults toapplication/json. - Header keys are normalized to lowercase.