Rules API

Coralogix provides an activation/deactivation rules API for its Rules engine. This allows you to control your rules and trigger their activation remotely based on triggers such as alerts and usage warnings.

To activate the API, All requests must include the authorization header, same as the alerts API.

In your Admin account: Go to settings -> Account settings -> API Access

Coralogix API access key

Get all rules

GET https://api.coralogix.com/api/v1/rules

Activate rule

POST https://api.coralogix.com/api/v1/rules/toggle

{
    "ruleName": "My rule",
    "active": true
}

Deactivate rule

POST https://api.coralogix.com/api/v1/rules/toggle

{
    "ruleName": "My rule",
    "active": false
}

 Signup to Coralogix

WordPress Lightbox