ves-io-schema-alert-CustomAPI-Alerts

Examples of performing alert CustomAPI Alerts

Usecase:

Perform Alerts on alert

Request:

Request using vesctl:

vesctl request rpc alert.CustomAPI.Alerts -i request.yaml --uri /public/namespaces/namespace-literal/alerts --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

{}

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/namespace-literal/alerts?filter=&inactive=false&inhibited=false&namespace=&silenced=false&unprocessed=false'

curl response:

HTTP/1.1 200 OK
Content-Length: 16
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:06:29 GMT
Vary: Accept-Encoding

{
  "data": ""
}