From a5aa6e75a5176960b6ddfacb418011cc24d9da80 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Mon, 3 Dec 2018 18:10:35 +0300 Subject: [PATCH] Delete HOOKS.md --- HOOKS.md | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 HOOKS.md diff --git a/HOOKS.md b/HOOKS.md deleted file mode 100644 index b37756f..0000000 --- a/HOOKS.md +++ /dev/null @@ -1,37 +0,0 @@ -# Anomaly hooks - -It's possible to get notifications about new anomalies via [WebHooks](https://en.wikipedia.org/wiki/Webhook) - -You need to set variable `HASTIC_ALERT_ENDPOINT` with your endpoint and expects `POST` methods -from hastic-server if format: - -```json -{ - "anomaly": "cpu_load", - "status": "OK" -} -``` - -`status` field can be one of: -- `alert` -- `OK` - -## Docker run -```bash -docker run -d --name hastic-server -p 80:8000 -e HASTIC_API_KEY= HASTIC_ALERT_ENDPOINT="http://exam.ple" hastic-server -``` - -## Node run - -Add variable before launch node.js server - -```bash -export HASTIC_API_KEY= -export HASTIC_PORT= -export HASTIC_ALERT_ENDPOINT=http://alert.example.com - -cd hastic-server/server -npm start -``` - -