This query returns a list of when a M2X trigger has been fired.
Developer info
API endpoint slug
attm2x.history_of_trigger_fired
Runtime method
performQuery("attm2x.history_of_trigger_fired")
Query fields
Device ID Text input > Other
Label
Which device?
Helper text
The device ID can be found on the Device Details page of your M2X account. Leave this field blank for firing this trigger when an M2X trigger has been fired by any device.
Slug
device_id
Required
true
Can have default value
true
Ingredients
Device IDThe unique ID of the device that has fired the trigger.
Slug
device_id
Filter code
Attm2x.historyOfTriggerFired.DeviceId
Type
String
Example
65b89448f954f49e42b746d73b385cbb
Device nameThe name of the device that has fired the trigger.
Slug
device_name
Filter code
Attm2x.historyOfTriggerFired.DeviceName
Type
String
Example
Main Engine
Device serialThe serial number of the device that has fired the trigger.
Slug
device_serial
Filter code
Attm2x.historyOfTriggerFired.DeviceSerial
Type
String
Example
ABCD1234567890
Trigger IDThe unique identifier of the trigger that has been fired.
Slug
trigger_id
Filter code
Attm2x.historyOfTriggerFired.TriggerID
Type
String
Example
b1e8abbad65cb52b0d75eb2e63efa782
Trigger nameThe name of the trigger that has been fired.
Slug
trigger_name
Filter code
Attm2x.historyOfTriggerFired.TriggerName
Type
String
Example
high-temperature-and-humidity
ConditionsA JSON representation of the conditions that caused the trigger to be fired.