Check status of the middleware application
curl --request GET \
--url https://hiimpria.ai/api/test/healthimport requests
url = "https://hiimpria.ai/api/test/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hiimpria.ai/api/test/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://hiimpria.ai/api/test/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://hiimpria.ai/api/test/health"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hiimpria.ai/api/test/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/test/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "ok",
"uptime": 112.368138,
"timestamp": 1750534150795,
"summary": "Event loop lag: 12ms | RSS: 280MB | heap: 158MB/170MB | mongo: connected",
"eventLoopLag": {
"meanMs": 1.2,
"p50Ms": 0.4,
"p95Ms": 6.1,
"p99Ms": 15,
"maxMs": 42
},
"mongo": {
"state": 1,
"label": "connected"
},
"memory": {
"rss": 128008192,
"heapTotal": 72105984,
"heapUsed": 67442352,
"external": 23693540,
"arrayBuffers": 19882176,
"limitBytes": 17179869184,
"rssRatio": 0.0075
},
"dependencies": {
"database": 1
}
}Testing
Check status of the middleware application
Returns the current health status of the service including uptime, memory usage, and dependency status
GET
/
api
/
test
/
health
Check status of the middleware application
curl --request GET \
--url https://hiimpria.ai/api/test/healthimport requests
url = "https://hiimpria.ai/api/test/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hiimpria.ai/api/test/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://hiimpria.ai/api/test/health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://hiimpria.ai/api/test/health"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hiimpria.ai/api/test/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/test/health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "ok",
"uptime": 112.368138,
"timestamp": 1750534150795,
"summary": "Event loop lag: 12ms | RSS: 280MB | heap: 158MB/170MB | mongo: connected",
"eventLoopLag": {
"meanMs": 1.2,
"p50Ms": 0.4,
"p95Ms": 6.1,
"p99Ms": 15,
"maxMs": 42
},
"mongo": {
"state": 1,
"label": "connected"
},
"memory": {
"rss": 128008192,
"heapTotal": 72105984,
"heapUsed": 67442352,
"external": 23693540,
"arrayBuffers": 19882176,
"limitBytes": 17179869184,
"rssRatio": 0.0075
},
"dependencies": {
"database": 1
}
}Response
200 - application/json
Service is healthy and operational
Was this page helpful?