From 5cbbda1d51e35560fe979f027c189112dd232b31 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Sat, 26 May 2018 17:34:50 +0300 Subject: [PATCH] Create HOOKS.md --- HOOKS.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 HOOKS.md diff --git a/HOOKS.md b/HOOKS.md new file mode 100644 index 0000000..6a66936 --- /dev/null +++ b/HOOKS.md @@ -0,0 +1,16 @@ +# Anomaly hooks + +- HASTIC_ALERT_ENDPOINT - (optional) endpoint you want to send alerts to + +Alert example (method: POST): + +``` +{ + anomaly: 'cpu_load', + status: +} +``` + +`status` field can be one of: +- `alert` +- `OK`