Get rule by ID
GET {{baseUrl}}/rules/:ruleId
Retrieve the rule based on the specified parameter ruleID
.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"_embedded":{"rule":{"ruleId":"580a52f638394c8ab35f22f03556a7ed","assetType":"myiottenant.GearBox","assetIds":["9f81490428644ff995b0e3590f21ef57","76a1388fee23496bacac9bc378aa65fe"],"name":"Gear box temperature \u003e 85°C","description":"Raise warning if gear box temperature exceeds 85°C","active":true,"lastChangedActive":"2022-05-30T05:38:16.438Z","creator":"\u003cName of user that has initially created the rule\u003e","created":"\u003cDate and time of rule creation\u003e","editor":"\u003cName of user that has last updated the rule configuration\u003e","edited":"\u003cDate and time of last rule update\u003e","etag":"4b4283c1ba936b7ed38ba4dd936d79e4","evaluations":[{"property":"/data/GearBoxTemp","condition":"\u003e=","hysteresisAbsolute":{"active":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"lowerValue":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"upperValue":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"debouncingTime":{"active":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"threshold":50,"lowerLimitThreshold":25,"upperLimitThreshold":75},{"property":"/data/GearBoxTemp","condition":"\u003e=","hysteresisAbsolute":{"active":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"lowerValue":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"upperValue":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"debouncingTime":{"active":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"threshold":50,"lowerLimitThreshold":25,"upperLimitThreshold":75}],"actions":{"email":{"active":"\u003cboolean\u003e","address":"user1@example.com;user2@example.com"},"notifier":{"active":"\u003cboolean\u003e"},"status":{"active":"\u003cboolean\u003e","severity":"\u003cnumber\u003e"},"event":{"severity":"\u003cnumber\u003e","limitInterval":{"active":"\u003cboolean\u003e","value":10}}},"conditionMet":{"status":false,"timestamp":"2022-01-25T11:57:54.833+01:00"}}},"quota":{"active":31,"total":50,"limitActive":70},"message":"Rule read"}