Returns details of the rule trigger event

Params

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

Examples

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
}