Actions Type¶
TriggerGeofenceValueType¶
Attributes:
center: Optional[List[float]]E.g [longitude, latitude]radius: Optional[float]coordinates: Optional[List[List[float]]]E.g [[longitude, latitude], [longitude, latitude], …]
ActionTypeScriptParams¶
Attributes:
script: List[GenericID]type: “script”
ActionTypeNotificationParams¶
Attributes:
message: strsubject: strtype: “notification”
ActionTypeNotificationRunParams¶
Attributes:
ActionTypeEmailParams¶
Attributes:
message: strsubject: strto: strtype: “email”
ActionTypeSMSParams¶
Attributes:
message: strto: strtype: “sms”
ActionTypeMQTTParams¶
Attributes:
bucket: strpayload: strtopic: strtype: “mqtt”
ActionTypePostParams¶
Attributes:
headers: Dicttype: “post”url: str
ActionTriggerResourceType¶
Attributes:
resource: “device” or “bucket” or “file” or “analysis” or “action” or “am” or “user” or “financial” or “profile”when: “create” or “update” or “delete”tag_key: strtag_value: str
ActionTriggerIntervalType¶
Attributes:
interval: str
ActionTriggerCronType¶
Attributes:
timezone: Union[str, datetime]cron: strThe cron expression
ActionTriggerConditionType¶
Attributes:
device: strvariable: stris: Conditionalsvalue: strsecond_value: Optional[str]value_type: “string” or “number” or “boolean” or “*”unlock: Optional[bool]
ActionTriggerUsageType¶
Attributes:
service_or_resource: “input” or “output” or “analysis” or “data_records” or “sms” or “email” or “run_users” or “push_notification” or “file_storage” or “device” or “dashboard” or “action” or “tcore” or “team_members” or “am”condition: “=” or “>”condition_value: float
ActionTriggerGeofenceType¶
Attributes:
ActionTriggerType¶
Attributes:
ActionTriggerType is a Union of:
ActionCreateInfo¶
Attributes:
name: strThe name for the actionprofile: Optional[GenericID]Profile identificationactive: Optional[bool]True if the action is active or not. The default is truetags: Optional[List[TagsObj]]An array of tagsdescription: Optional[str]Description of the actionlock: Optional[bool]type: Optional[str]Type of actiontrigger: Optional[List[ActionTriggerType]]Array of trigger configuration according to typeaction: DictAction configurationtrigger_when_unlock: Optional[bool]Trigger the action when unlock condition is met
ActionInfo(ActionCreateInfo)¶
Attributes:
MQTTResourceAction¶
Attributes:
client_id: strconnected_at: strdisconnect_at: Optional[str]
ActionQuery(Query)¶
Attributes:
fields: Optional[List[“name” or “active” or “last_triggered” or “created_at” or “updated_at”]]