Get device evaluation context
GET/api/v1/rules/device-context
Returns the evaluation context built from the latest discovery message for a device. Supply either deviceId (returns the latest message for that device) or discoveryMessageId (returns the context for that exact message, deviceId not required). The context structure is identical to what is used internally during rule evaluation.
Request
Query Parameters
deviceId string
Device ID to look up. Required when discoveryMessageId is not provided.
discoveryMessageId string
ID of a specific discovery message to use. When provided, deviceId is not required.
Responses
- 200
Device context and the discovery message it was built from
- application/json
- Schema
- Example (from schema)
Schema
discoveryMessageId stringrequired
ID of the discovery message used to build this context
context objectrequired
The device evaluation context as used during rule evaluation
{
"discoveryMessageId": "string",
"context": {}
}
Loading...