Returns details of the rule specified

Params

Param name Description
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean

Examples

Request - get details of the specified rule (rule_key specified as a part of the url)
  curl -X GET -H "Content-Type:application/json" -H "X-Auth-Token:DarTKU-eUJ7md2vS-lFroA" https://api.datonis.io/api/v2/rules/t2514225a7

Response (details of the rule requested)
{
  "rule": {
    "enabled": true,
    "expression": "$event.data.power < 500",
    "name": "Power monitoring rule",
    "rule_applicability": 3,
    "rule_applicability_value": "27ce8667143fa217b3eb9ecbedcbacdc28addt97,16dc891e4b255735d7tafete13e6fdc412628t84",
    "rule_key": "t2514225a7",
    "rule_type": null,
    "time_between_triggers": 1800,
    "user_visible_expression": null
  }
}