Add Hook APIedit

A new hook can be defined using the PUT method and defining hook parameters inside the request body. This hook will handle notifications for a given model when running anomaly detection.

One or more hooks can be used for a given model. An active hook can be unregistered at any time.

PUT /models/<model_name>/hooks
   ...your parameters

Using curl:

curl -H "Content-Type: application/json" -X PUT localhost:8077/models/my-model/hooks --data-binary @hook.json

The HTTP content type must be application/json