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: str
subject: str
type: “notification”

ActionTypeNotificationRunParams

Attributes:

message: str
subject: str
run_user: GenericID
type: “notification_run”

ActionTypeEmailParams

Attributes:

message: str
subject: str
to: str
type: “email”

ActionTypeSMSParams

Attributes:

message: str
to: str
type: “sms”

ActionTypeMQTTParams

Attributes:

bucket: str
payload: str
topic: str
type: “mqtt”

ActionTypePostParams

Attributes:

headers: Dict
type: “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: str
tag_value: str

ActionTriggerIntervalType

Attributes:

interval: str

ActionTriggerCronType

Attributes:

timezone: Union[str, datetime]
cron: str
The cron expression

ActionTriggerConditionType

Attributes:

device: str
variable: str
value: str
second_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:

device: str
variable: str
is: “IN” or “OUT”
unlock: Optional[bool]

ActionTriggerType

ActionCreateInfo

Attributes:

name: str
The name for the action
profile: Optional[GenericID]
Profile identification
active: Optional[bool]
True if the action is active or not. The default is true
tags: Optional[List[TagsObj]]
An array of tags
description: Optional[str]
Description of the action
lock: Optional[bool]
type: Optional[str]
Type of action
trigger: Optional[List[ActionTriggerType]]
Array of trigger configuration according to type
action: Dict
Action configuration
trigger_when_unlock: Optional[bool]
Trigger the action when unlock condition is met

ActionInfo(ActionCreateInfo)

Attributes:

last_triggered: ExpireTimeOption
updated_at: datetime
created_at: datetime

MQTTResourceAction

Attributes:

client_id: str
connected_at: str
disconnect_at: Optional[str]

ActionQuery(Query)

Attributes:

fields: Optional[List[“name” or “active” or “last_triggered” or “created_at” or “updated_at”]]