Event

The event is one of the main objects in the system.

An event is any action of a user anywhere (on the site, in a mobile application, etc.) that you consider important. For example, visited a certain page, made an order, paid for a subscription, etc.

Standard object fields

  • id: ID
    Уникальный идентификатор события.

  • created: timestmap
    Дата создания события.

  • type: EventType
    EventType object.

  • user: ID
    ID of the user who triggered this event.

  • props: Dict
    Event extra properties. Dictionary: a key is a string, a value can be one of the following:

    • integer number -2^53 .. +2^53, (-9007199254740992 .. +9007199254740992).
    • a string up to 255 characters length
    • datetime in ISO 8601 format: YYYY-MM-DDTHH:MM:SS. You can also use short format: YYYY-MM-DD (in this case 00:00:00 is set as time).
    • logic (boolean)
    • Array with less than 30 elements. Elements should be strings up to 255 characters.
    • Dictionary with less than 30 elements. Keys and values should be strings up to 255 characters.

Example

{
  "id": 61956879,
  "created": 1440415123,
  "user": 123,
  "type": {
    "id": 341,
    "name": "Order Created",
    "score": 0,
    "visible": true,
    "active": true
  }, 
  "props": {
    "x": 10,
    "y": "Hello"
  }
}