Get system health information
curl --request GET \
--url https://api.justanotheruptime.com/admin/system-health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.justanotheruptime.com/admin/system-health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.justanotheruptime.com/admin/system-health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.justanotheruptime.com/admin/system-health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.justanotheruptime.com/admin/system-health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.justanotheruptime.com/admin/system-health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.justanotheruptime.com/admin/system-health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "healthy",
"lastChecked": "2025-01-01T00:00:00.000Z",
"cpuUsage": 45.2,
"memoryUsage": 62.7,
"totalMemoryMB": 8192,
"usedMemoryMB": 5120,
"diskUsage": 78.3,
"totalDiskMB": 500000,
"usedDiskMB": 391500,
"systemUptime": "5d 12h 30m",
"nodeHeapUsedMB": 512,
"nodeHeapTotalMB": 1024,
"eventLoopLagMs": 5.2,
"databaseConnected": true,
"dbConnections": 25,
"maxDbConnections": 100,
"dbConnectionUsage": 45.8,
"avgQueryTimeMs": 12.3,
"slowQueriesCount": 5,
"dbSizeMB": 1024,
"servicesRunning": true,
"apiRequestRate": 250,
"maxApiRequestRate": 500,
"avgResponseTimeMs": 85.2,
"errorRate": 0.5,
"activeUserSessions": 120,
"cacheHitRatio": 95.7,
"serviceDependencies": {
"email": "healthy",
"slack": "healthy",
"database": "healthy"
},
"error": "Database connection failed",
"trends": {
"cpuUsage": 5.2,
"memoryUsage": -2.1,
"apiRequestRate": 10.5
}
}{
"status": "unhealthy",
"error": "Database connection failed",
"lastChecked": "2023-11-07T05:31:56Z"
}Admin
Get system health information
GET
/
admin
/
system-health
Get system health information
curl --request GET \
--url https://api.justanotheruptime.com/admin/system-health \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.justanotheruptime.com/admin/system-health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.justanotheruptime.com/admin/system-health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.justanotheruptime.com/admin/system-health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.justanotheruptime.com/admin/system-health"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.justanotheruptime.com/admin/system-health")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.justanotheruptime.com/admin/system-health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "healthy",
"lastChecked": "2025-01-01T00:00:00.000Z",
"cpuUsage": 45.2,
"memoryUsage": 62.7,
"totalMemoryMB": 8192,
"usedMemoryMB": 5120,
"diskUsage": 78.3,
"totalDiskMB": 500000,
"usedDiskMB": 391500,
"systemUptime": "5d 12h 30m",
"nodeHeapUsedMB": 512,
"nodeHeapTotalMB": 1024,
"eventLoopLagMs": 5.2,
"databaseConnected": true,
"dbConnections": 25,
"maxDbConnections": 100,
"dbConnectionUsage": 45.8,
"avgQueryTimeMs": 12.3,
"slowQueriesCount": 5,
"dbSizeMB": 1024,
"servicesRunning": true,
"apiRequestRate": 250,
"maxApiRequestRate": 500,
"avgResponseTimeMs": 85.2,
"errorRate": 0.5,
"activeUserSessions": 120,
"cacheHitRatio": 95.7,
"serviceDependencies": {
"email": "healthy",
"slack": "healthy",
"database": "healthy"
},
"error": "Database connection failed",
"trends": {
"cpuUsage": 5.2,
"memoryUsage": -2.1,
"apiRequestRate": 10.5
}
}{
"status": "unhealthy",
"error": "Database connection failed",
"lastChecked": "2023-11-07T05:31:56Z"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Include historical health data
Response
Returns system health information
Available options:
healthy, unhealthy Example:
"healthy"
Example:
"2025-01-01T00:00:00.000Z"
Example:
45.2
Example:
62.7
Example:
8192
Example:
5120
Example:
78.3
Example:
500000
Example:
391500
Example:
"5d 12h 30m"
Example:
512
Example:
1024
Example:
5.2
Example:
true
Example:
25
Example:
100
Example:
45.8
Example:
12.3
Example:
5
Example:
1024
Example:
true
Example:
250
Example:
500
Example:
85.2
Example:
0.5
Example:
120
Example:
95.7
Example:
{
"email": "healthy",
"slack": "healthy",
"database": "healthy"
}
Error message if status is unhealthy
Example:
"Database connection failed"
Example:
{
"cpuUsage": 5.2,
"memoryUsage": -2.1,
"apiRequestRate": 10.5
}