Group Location
Explore Plans
Mobile menu Close menu
AT&T M2XAT&T M2X

History of trigger fired

This query returns a list of when a M2X trigger has been fired.

About this query

Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.

Developer info

Description
This query returns a list of when a M2X trigger has been fired.
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.

Slug
conditions
Filter code
Attm2x.historyOfTriggerFired.Conditions
Type
String
Example
{"temperature": { "gt": 30, "reset": 28 }, "humidity": { "gte": 80, "lte": 90 }}

ValuesA JSON representation of all the values that has caused the trigger to be fired.

Slug
values
Filter code
Attm2x.historyOfTriggerFired.Values
Type
String
Example
{"temperature": { "value": 35, timestamp: "2014-06-27T22:22:58.104Z", "unit_symbol": "ÂșC" }}

Custom dataOptional custom data set by the user for this trigger.

Slug
custom_data
Filter code
Attm2x.historyOfTriggerFired.CustomData
Type
String
Example
{"status": "yellow"}

TimestampDate and time trigger has been fired.

Slug
timestamp
Filter code
Attm2x.historyOfTriggerFired.Timestamp
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00