Returns details of the rule trigger event
| Param name | Description |
|---|---|
|
page optional |
Page number of results to be fetched, Default 1 Value: Must be Integer. |
|
per optional |
Number of records to be returnes in one page, Default 40 Value: Must be Integer. |
|
order optional |
Order, asc or desc, in which results should be sorted by time of occurance, Default desc Value: Must be a String |
|
individualRecords optional |
Choose between Summary “false” or Individual records (“true”). Default is false Value: Must be a Boolean |
|
rule_key optional |
Rule State changes for the particular rule will be fetched Value: Must be a String |
|
thing_key optional |
Rule State changes for the particular thing will be fetched Value: Must be a String |
|
timestamp_format optional |
Format, str or int, in which timestamps should be returned, Default int Value: Must be a String |
Request:
curl -X GET -H "Content-Type:application/json" -H "X-Auth-Token:WtUFnj8pvSxVnH9e_xkq7A" https://api.datonis.io/api/v3/rule_trigger_events
Response:
{
"total_count": 2,
"rule_trigger_events": [
{
"created_at": 1448517402,
"details": {
},
"rte_key": "t6c5df36c2",
"thing_keys": "af46eec35151abt6546f7ff8t294cf1e8t74e967",
"timestamp": 1448517402,
"updated_at": 1448517402,
"rule_key": "12tb3c686t"
},
{
"created_at": 1448517402,
"details": {
},
"rte_key": "c34ac88ca3",
"thing_keys": "af46eec35151abt6546f7ff8t294cf1e8t74e967",
"timestamp": 1448517402,
"updated_at": 1448517402,
"rule_key": "12tb3c686t"
}
],
"page": 1
}
Returns details of the rule_trigger_event requested
| Param name | Description |
|---|---|
|
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
Request - get details of the specified rule_trigger_event (rule_trigger_event_key specified as a part of the url)
curl -X GET -H "Content-Type:application/json" -H "X-Auth-Token:WtUFnj8pvSxVnH9e_xkq7A" https://api.datonis.io/api/v3/rule_trigger_events/532e376tfd
Response (returns details of the rule_trigger_event requested)
{
"created_at": 1448517402,
"details": {
},
"rte_key": "be3f77894c",
"thing_keys": "af46eec35151abt6546f7ff8t294cf1e8t74e967",
"timestamp": 1448517402,
"updated_at": 1448517402,
"rule_key": "4f441ef263"
}