Events

Retrieving event information.

The Events Model

An event is represented by the following schema:

Scheme

  • Name
    id
    Type
    integer
    Description
  • Name
    type
    Type
    string
    Description
  • Name
    eventTime
    Type
    string
    Description
    in IS0 8601 format. eg. `1963-11-22T18:30:00Z`
  • Name
    deviceId
    Type
    integer
    Description
  • Name
    positionId
    Type
    integer
    Description
  • Name
    geofenceId
    Type
    integer
    Description
  • Name
    maintenanceId
    Type
    integer
    Description
  • Name
    attributes
    Type
    object
    Description

GET/events/{id}

Retrieve an event

Authorizations

BasicAuth or ApiKey

  • Name
    BasicAuth
    Type
    scheme
    Description

    HTTP Authorization Scheme: basic

  • Name
    ApiKey
    Type
    scheme
    Description

    HTTP Authorization Scheme: bearer

Path parameters

  • Name
    id
    Type
    integer
    Description

Responses

  • Name
    200
    Type
    success
    Description
  • Name
    application/json
    Type
    schema
    Description

    Event

Request

GET
/events/{id}
curl --location 'https://gw.onemap8.com/api/events/<integer>' \
--header 'Accept: application/json' \
--header 'Authorization: Basic {your_access_token}'

Response

{
    "id": 0,
    "type": "string",
    "eventTime": "2019-08-24T14:15:22Z",
    "deviceId": 0,
    "positionId": 0,
    "geofenceId": 0,
    "maintenanceId": 0,
    "attributes": { }
}