DateTime of the Event in ISO 8601 format Date String
type
Event Type
actor
User who initiated the event. This is currently only applicable for DEVICE_SHARE and DEVICE_CONNECT. You can get user ID and email
owner
User who owns the device when the event affects a device/service. You can get user ID and email
users
An array of users affected by the event. For example on a DEVICE_SHARE it is the users whose access to a device/service was added or removed. On a DEVICESTATE event it is the users who were notified of the event.
state
The service state (online or offline)
target
The services affected by the event. For example the services that changed state, the services that where share access was changed, or the services connected
Additional Attributes by Type
For each event type extends the general EventType. Please refer to the schema documentation for the available attributes.
Event Log Parameters
Event Logs support pagination which is described here. Event response are sorted chronologically descending.
Additional parameters
Parameter
Type
Description
Default
types
Array of EventTypes
"DEVICE_STATE", "DEVICE_CONNECT", "DEVICE_SHARE"
More types will be become available. Please refer to the schema for current list
All
maxDate
DateTime
The last date you wish to be included in the result set. Accepts ISO 8601 format Date String with or without the timestamp
Today with 1000 events being the max size
minDate
DateTime
The first date you wish to be included in the result set. Accepts ISO 8601 format Date String with or without the timestamp
1 month ago with 1000 events being the max size
Get All Event Logs
These examples will fetch 1000 connection logs for all of your devices in the last month. See above for other event types. Min and max dates should not exceed 1 month.
JSON
query getEvents($size: Int, $from: Int, $minDate: DateTime, $maxDate: DateTime, $types: [EventType!]){ login {events(size: $size, from: $from, minDate: $minDate, maxDate: $maxDate, types: $types) { hasMore total items { type owner { email } actor { email } target { created id name } users { email } timestamp } } }}#Variables{"size": 1000,"from": 0,"minDate": "2021-06-01","maxDate": "2021-07-01""types": ["DEVICE_CONNECT"]}
This returns a url which you can use to download the results in a csv format. The url will expire in 1 hour. Max 10000 lines or 28 seconds of execution.
This request will fetch state logs for a specified device in a csv format using graphQL. In these examples we want to get the external IP address each time it comes online to track the device location.
JSON Result
#queryquery getEvents($deviceID: [String!]!, $minDate: DateTime, $maxDate: DateTime, $types: [EventType!]) { login {device(id: $deviceID) {events(minDate: $minDate, maxDate: $maxDate, types: $types) { hasMore total items { state timestamp target { name id }... on DeviceStateEvent { externalAddress geo { connectionType isp } } } } } }}#variables{"deviceID": ["80:XX:00:00:01:05:82:22"],"minDate": "2021-06-01","maxDate": "2021-07-01","types": ["DEVICE_STATE"]}
This request will return a url for a CSV download. The url will expire in 1 hour. Max 10000 lines or 28 seconds of execution. Min and max dates should not exceed 1 month.