trigger.report.find
The trigger.report.find command is used to find and return a trigger report.
TR50 Request
{
"cmd": {
"command": "trigger.report.find",
"params": {
"id": "574f4ad0681fdc24bdfe7240"
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
id |
String |
Yes |
The unique identifier of the report to find. |
TR50 Response
If the command is sent successfully a success message and the result is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true,
"params": {
"id": "574f4ad0681fdc24bdfe7240",
"triggerId": "55045da3681fdc50ac0471bf",
"ts": "2016-06-01T16:51:28.532-04:00",
"eventType": "thing.connection",
"event": {
"state": "connected",
"thing": {
"key": "thingkey",
"name": "auto:thingkey"
},
"ts": "2016-06-01T16:51:28.519-04:00"
},
"steps": [
{
"idx": 0,
"id": "0",
"type": "alarm.publish",
"params": {
"alarmKey": "connected",
"republish": "true",
"state": "1",
"thingKey": "$(event.thing.key)",
"ts": "$(event.ts)"
},
"route": "failure",
"errCode": -92301,
"errMsg": "Alarm 'connected' invalid for specified Thing."
}
],
"success": false,
"execTime": 2825478
}
}
}
Response Parameters
Name |
Type |
Description |
---|---|---|
id |
String |
The unique identifier of the trigger report. |
triggerId |
String |
The unique identifier of the trigger. |
ts |
String |
Timestamp the trigger ran. |
eventType |
String |
The type of event. |
event |
Array |
Array of the event that ran. |
steps |
Array |
Array of the steps performed in the trigger. |
success |
Boolean |
Whether the trigger was successful or not. |
execTime |
String |
Time the trigger took to execute, in nanoseconds. |