Check status of the middleware application
curl --request GET \
--url https://pria.praxislxp.com/api/test/healthimport requests
url = "https://pria.praxislxp.com/api/test/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://pria.praxislxp.com/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://pria.praxislxp.com/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://pria.praxislxp.com/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://pria.praxislxp.com/api/test/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/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://pria.praxislxp.com/api/test/healthimport requests
url = "https://pria.praxislxp.com/api/test/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://pria.praxislxp.com/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://pria.praxislxp.com/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://pria.praxislxp.com/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://pria.praxislxp.com/api/test/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/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
Overall health status
Example:
"ok"
Server uptime in seconds
Current timestamp in milliseconds
Human-readable one-line digest matching the heartbeat log format
Example:
"Event loop lag: 1.9s | RSS: 1.7GB | heap: 506MB/1.1GB | mongo: connected"
Event loop lag percentiles in ms over the current sampling window. Null until the monitor's histogram has data.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I