device_events
Retrieves a paginated list of device events.
Response
Returns DeviceEventConnection!
Arguments
| Name | Description |
|---|---|
first - Int= 1000 | The number of events to return per page. Default: 1000. |
after - String | The cursor for the next page of results. |
time_range - TimeRangeInput! | The time range for the query. |
filter - DeviceEventFilterInput! | Filters to apply to the device events query. |
QUERY
query ZDX {
ZDX {
device_events(first: 10, after: "example_after", time_range: { from: "2024-01-01T00:00:00Z", to: "2024-01-01T00:00:00Z" }, filter: { device_id: { in: ["example"] }, event_id: { in: [sys_browser_version_change] } }) {
edges {
cursor
node {
device_id
device_name
event_id
severity
timestamp
context
}
}
page_info {
has_next_page
end_cursor
}
total_count
}
}
}RESPONSE
{
"data": {
"ZDX": {
"device_events": {
"edges": [{
"cursor": "example_value",
"node": {
"device_id": "example_value",
"device_name": "example_value",
"event_id": "example_value",
"severity": "example_value",
"timestamp": {
}
}
}],
"page_info": {
"has_next_page": true,
"end_cursor": "example_value"
},
"total_count": 123
}
}
}
}