Server Monitors: Retrieve All
This documentation entry provides a comprehensive guide to using the "Retrieve All" server monitors endpoint, including all relevant details about the request, response, and data structures.
Endpoint
GET /api/server-monitors/
/api/server-monitors/Retrieve a list of all server monitors associated with your account.
Request
HTTP Request
GET https://uptimekeep.com/api/server-monitors/Headers
Authorization
String
Bearer token for API authentication.
Query Parameters
page
Integer
(Optional) The page number to retrieve.
1
results_per_page
Integer
(Optional) Number of results per page. Allowed values: 10, 25, 50, 100, 250, 500, 1000.
25
Example of a request:
curl --request GET \
--url 'https://uptimekeep.com/api/server-monitors/' \
--header 'Authorization: Bearer {api_key}'Response
A successful response returns a JSON object with the list of server monitors and associated metadata.
Response Example
Fields
Data Object
id
Integer
Unique identifier for the server monitor.
project_id
Integer
ID of the associated project (if applicable).
name
String
Name of the server monitor.
target
String
The IP address or hostname being monitored.
settings
Object
Configuration settings for the server monitor, such as check interval.
cpu_usage
Float
Current CPU usage percentage.
ram_usage
Float
Current RAM usage percentage.
disk_usage
Float
Current disk usage percentage.
cpu_load_1
Float
CPU load average over the last 1 minute.
cpu_load_5
Float
CPU load average over the last 5 minutes.
cpu_load_15
Float
CPU load average over the last 15 minutes.
is_enabled
Boolean
Indicates if the server monitor is currently active.
total_logs
Integer
Total number of logs collected.
last_log_datetime
String
Timestamp of the last log entry (in YYYY-MM-DD HH:MM:SS format).
datetime
String
Timestamp when the monitor was created (in YYYY-MM-DD HH:MM:SS format).
last_datetime
String
Timestamp of the last update to the monitor (in YYYY-MM-DD HH:MM:SS format).
Meta Object
page
Integer
Current page number of the results.
results_per_page
Integer
Number of results per page.
total
Integer
Total number of server monitors.
total_pages
Integer
Total number of pages available based on the current query.
Links Object
first
String
URL of the first page of results.
last
String
URL of the last page of results.
next
String
URL of the next page of results (if applicable).
prev
String
URL of the previous page of results (if applicable).
self
String
URL of the current page of results.
Errors
If the request fails, the API will return an error message with an appropriate HTTP status code.
Last updated