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 20 Value: Must be Integer. |
order_by optional |
Field on which results should be sorted Value: Must be a String |
order optional |
Order, asc or desc, in which results should be sorted Value: Must be a String |
search optional |
Search string, rule_key Value: Must be a String |
scope optional |
Matching condition. Valid values are “all” or “any” Value: Must be a String |
rule_key optional |
Rule trigger events for the particular rule will be fetched Value: Must be a String |
thing_key optional |
Rule trigger events 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 |
field_list optional |
List of fields required in the result. Value: Must be an array of any type |
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" }