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 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
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" --header 'X-Auth-Token:IEkmVGHsa4R3cGPw56MkfQ'  'http://api.datonis.io/api/v2/rule_trigger_events/a3826' 
Response:
 {
  "rte_key": "a38261d342",
  "entity_keys": "2fa9f4c6948cat24dbbd7f1ff4tt3c5tcd11111",
  "timestamp": 14170023312,
  "details": {
    "event": {
      "data": {
        "value": 77
      },
      "timestamp": 1417002209,
      "sensor_key": "2fa9f4c6948cat24dbbd7f1ff4tt3c5tcd11111"
    },
    "rule": {
      "expression": "$sensor.traits.x != FOO",
      "enabled": true,
      "time_between_triggers": 500,
      "rule_key": "rk234",
      "rule_applicability_value": "xyz",
      "rule_applicability": 2
    }
  },
  "rule_key": "rk234"
}