Updates the rule with given parameters
Param name | Description |
---|---|
rule required |
Map containing the details of the rule to be updated Value: Must be a Hash |
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
Request curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:Ko2rILQPWNxzFj1zudWx7g" -d '{"rule":{"enabled":false,"expression":"$event.data.voltage \u003E 270","time_between_triggers":900}}' https://api.datonis.io/api/v3/rules/ce9t822eda Response (containing details of the rule updated) { "rule": { "enabled": false, "expression": "$event.data.voltage > 270", "name": "Voltage High Threshold monitoring", "rule_applicability": 3, "rule_applicability_value": "27ce8667143fa217b3eb9ecbedcbacdc28addt97,16dc891e4b255735d7tafete13e6fdc412628t84", "rule_key": "ce9t822eda", "rule_type": null, "time_between_triggers": 900, "user_visible_expression": null } }