Events Object

Describes the JSON object of an Event.

An Event in Ubidots triggers one or more actions when one or more conditions are met.

PropertyTypeDescription
idStringId of Event
labelStringLabel of Event
nameStringName of Event
createdAtStringDate Event was created
descriptionStringDescription of Event
isActiveBooleanTrue if the Event is active
lastTriggeredIntegerDate when Event was last triggered
organizationObjectOrganization object with the following keys: url, id, label, and name
tagsString ArrayTags of Event
triggersArray of ObjectsArray of Trigger Objects
actionsArray of ObjectsArray of Action Objects
activeDatesObjectObject containing all active dates
isGlobalEventBooleanTrue if Event is a global Event
urlStringUrl of Event
{
  "url": "https://industrial.api.ubidots.com/api/v2.0/events/5e9e94201d84727dc57df531",
  "id": "5e9e94201d84727dc57df531",
  "label": "if-var0-then-telegram",
  "name": "If var0 then Telegram",
  "description": "",
  "tags": [],
  "organization": null,
  "isActive": true,
  "lastTriggered": 1590043969239,
  "createdAt": "2020-04-21T06:35:12.368604Z",
  "triggers": [
    [
      {
        "type": "last_value",
        "condition": {
          "value": "60",
          "operator": ">",
          "delay": 0
        },
        "entity": {
          "type": "variable",
          "value": [
            {
              "id": "5c644eff1d8472686e9abb4f"
            }
          ],
          "operator": "or"
        }
      }
    ]
  ],
  "actions": [
    {
      "data": {
        "message": "Hey there, {{variable.name}} was {{last_value}} at {{trigger_timestamp|timestampformat('America/Bogota')}}.\n{{from_email}}",
        "numbers": [
          {
            "number": "+57  (300) 808 - 3219",
            "country": {
              "id": "CO",
              "label": "Colombia",
              "value": "+57"
            }
          }
        ]
      },
      "name": "Send Telegram",
      "type": "telegram",
      "isGeneric": true,
      "exclusiveFor": [],
      "repeatAction": false,
      "idGroupAction": "6kfdk238k",
      "back_to_normal": false,
      "maxRepetitions": 10,
      "repeatInterval": {
        "unit": "T",
        "value": 60
      }
    }
  ],
  "activeDates": {
    "dates": [
      [
        [
          "00:00",
          "23:59"
        ]
      ],
      [
        [
          "00:00",
          "23:59"
        ]
      ],
      [
        [
          "00:00",
          "23:59"
        ]
      ],
      [
        [
          "00:00",
          "23:59"
        ]
      ],
      [
        [
          "00:00",
          "23:59"
        ]
      ],
      [
        [
          "00:00",
          "23:59"
        ]
      ],
      [
        [
          "00:00",
          "23:59"
        ]
      ]
    ],
    "timezone": "America/Bogota"
  },
  "isGlobalEvent": false
}