Add Flowtriq notification plugin#925
Conversation
Add a notification plugin for Flowtriq (https://flowtriq.com), a DDoS detection and traffic analytics platform. The plugin POSTs alert payloads to a configurable webhook URL with an optional API key (sent as X-API-Key header). The JSON payload includes source, host, host_address, service, state, output, notification_type, and an optional Checkmk URL for linking back to the monitored object. New files: - cmk/notification_plugins/flowtriq.py (plugin logic) - notifications/flowtriq.py (entry point script) - cmk/gui/wato/_notification_parameter/_flowtriq.py (WATO GUI form) - tests/test_flowtriq.py (unit tests) Updated: - registration.py (GUI parameter registration) - notify_types.py (FlowtriqPluginModel type definitions) - BUILD (Bazel packaging) - test_registry.py, test_configuration_entity.py, test_binaries.py
|
I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA. |
|
recheck |
|
Thank you for your contribution. This pull request has been marked as stale as it has not passed the automated tests and there was no activity for the last 14 days. This pull request will be closed due to inactivity after 60 days, if no action is taken. |
Summary
X-API-KeyheaderWhat's included
Plugin logic (
cmk/notification_plugins/flowtriq.py):source,host,host_address,service,state,output,notification_type, and optional Checkmkurlpost_requestwith optionalX-API-KeyheaderEntry point script (
notifications/flowtriq.py):WATO GUI form (
cmk/gui/wato/_notification_parameter/_flowtriq.py):Type definitions (
cmk/utils/notify_types.py):FlowtriqPluginModel,FlowtriqPluginName,FlowtriqNotifyKnownPluginParameters,BuiltInPluginNames,NotifyPluginParamsDictunionsTests:
Build:
notification_scriptspkg_filesrenamesTest plan
test_flowtriq.py(message construction for service, host, and recovery notifications)flowtriqKeyError.*NOTIFwhen run without env vars