Action API
Deprecated: REST API for Actions v1.75
This feature has been deprecated and replaced by a GraphQL API, except for the test endpoint.
Test Action
logscale
POST /api/v1/repositories/$REPOSITORY_NAME/alertnotifiers/$ID/test
Params:
alertName — string
events — array — array of LogScale log events
Example:
logscale
curl http://$YOUR_LOGSCALE_URL/api/v1/repositories/sandbox/alertnotifiers/GXso4uF2EawsVyvtr2Q6DbtlWNPKwtOj/test \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"alertName":"testAlertName", events: [{"@timestamp": 0, "@timezone": "Z", "#host": "TestHost"}]}'