List Monitor Events
GET/monitors/:monitor_id/events
Retrieves a list of events for a monitor.
Request
Path Parameters
REQUIRED. Desired monitor ID
Query Parameters
Default value: 10
Number of items to return in the response list.
Filter results that match values in the given key separated by a colon. These are not exact matches, so filtering on a value of pet:cat
will return cat
along with caterpillar
pets. Filter parameters may be repeated if multiple filters are desired, but a given field can only be queried once because all filters will be logically ANDed.
Possible values: [asc
, desc
]
Default value: desc
Sort order, desc
for descending chronological order of creation date (latest first), asc
for ascending order.
The token (base64 string) next_page_token
returned in the previous page of results. This is used to fetch the next page of results when the sort order is asc
.
The token (base64 string) next_page_token
returned in the previous page of results. This is used to fetch the next page of results when the sort order is desc
.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
data object
events object[]
monitor_event_links object
links object
{
"data": {
"events": [
{
"id": "6121257021730963693",
"date_created": "2023-02-16T18:22:25Z",
"date_modified": "2023-02-16T18:22:25Z",
"monitor_id": "123123123123123",
"event_timestamp": "2023-02-16T18:22:25Z",
"event": {
"monitor_state_changed": "enable",
"changed_by": "start_date"
},
"monitor_event_links": {
"monitor": "https://api.maxar.com/monitoring/v1/monitors/123123123123123"
}
}
]
},
"request_timestamp": "2022-12-01T23:19:02Z",
"response_timestamp": "2022-12-01T23:19:06Z",
"request_duration": 4,
"links": {
"request": "https://api.maxar.com/monitoring/v1/monitors/123123123123123/events"
}
}
{
"data": {
"events": [
{
"id": "6121257021730963693",
"date_created": "2023-02-14T22:25:00Z",
"date_modified": "2023-02-14T22:25:00Z",
"monitor_id": "123123123123123",
"event_timestamp": "2023-02-14T22:25:00Z",
"event": {
"monitor_state_changed": "enable",
"changed_by": "start_date"
},
"monitor_event_links": {
"monitor": "https://api.maxar.com/monitoring/v1/monitors/123123123123123"
}
},
{
"id": "9991257054890987654",
"date_created": "2023-02-22:25:04Z",
"date_modified": "2023-02-22T22:25:04Z",
"monitor_id": "123123123123123",
"event_timestamp": "2023-02-22:25:04Z",
"event": {
"type": "match",
"source_id": "discovery/catalog",
"event_id": "0001"
},
"monitor_event_links": {
"monitor": "https://api.maxar.com/monitoring/v1/monitors/123123123123123"
}
},
{
"id": "6121257054898076531",
"date_created": "2023-03-14T22:25:04Z",
"date_modified": "2023-03-14T22:25:04Z",
"monitor_id": "123123123123123",
"event_timestamp": "2023-03-14T22:25:04Z",
"event": {
"monitor_state_changed": "disable",
"changed_by": "end_date"
},
"monitor_event_links": {
"monitor": "https://api.maxar.com/monitoring/v1/monitors/123123123123123"
}
}
]
},
"links": {
"request": "https://api.maxar.com/monitoring/v1/monitors/123123123123123/events"
},
"request_timestamp": "2023-02-16T18:22:25Z",
"response_timestamp": "2023-02-16T18:22:26Z",
"request_duration": 1
}