Event
Find events by monitor
GET
/v1/event
To find actual events(responses) by each monitor.
Events will be returned in descending order by event's created_at
.
Headers
Name
Value
Authorization
Bearer <token>
Query Parameters
Name
Type
Description
monitor_id
string
limit
number
number of events to fetch. number should be less than or equal to 100
.
since
string
must be in fomat of YYYY-MM-DD HH:MM:SS
. (default: 1970-01-01 00:00:00
)
Response
[
{
"id": "event_01j50y51depza8jsbh6qw4yscw",
"monitor_id": "monitor_01j4xdy62sa41a33tw59dg89pd",
"status": "UP",
"response": {
"status_code": 200,
"response_time": 452 // milliseconds
},
"created_at": "2024-08-11 14:40:50"
},
{
"id": "event_01j50xzg2v7jj7em7axqgrntwk",
"monitor_id": "monitor_01j4xdy62sa41a33tw59dg89pd",
"status": "UP",
"response": {
"status_code": 200,
"response_time": 414
},
"created_at": "2024-08-11 14:37:48"
}
]
Count all events
GET
/v1/event/count/all
Count all events number in uptimeninja.io.
It has cache for max-age=3600
(1 hour).
Response
{
"count": 4100
}
Last updated