Retrieve the status of instance
curl --request GET \
--url http://localhost:9602/import requests
url = "http://localhost:9602/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:9602/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9602",
CURLOPT_URL => "http://localhost:9602/",
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 := "http://localhost:9602/"
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("http://localhost:9602/")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9602/")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"uptime": "8s",
"runtime": {
"go": "go1.24.3",
"goroutines": 1434
},
"memory": {
"alloc": "3.52 MiB",
"sys": "23.14 MiB",
"heap_alloc": "3.52 MiB",
"heap_idle": "6.11 MiB",
"heap_inuse": "5.92 MiB",
"heap_objects": 21667,
"gc": 1
},
"database": {
"total_connections": 1,
"active_connections": 0
},
"inbound_requests": 0,
"inbound_failed_requests": 0,
"outbound_requests": 0,
"outbound_processing_requests": 0,
"outbound_failed_requests": 0,
"queue": {
"size": 0,
"backlog_latency_secs": 0
},
"event": {
"pending": 0
}
}API Reference
Retrieve the status of instance
GET
/
Retrieve the status of instance
curl --request GET \
--url http://localhost:9602/import requests
url = "http://localhost:9602/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:9602/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9602",
CURLOPT_URL => "http://localhost:9602/",
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 := "http://localhost:9602/"
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("http://localhost:9602/")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9602/")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"uptime": "8s",
"runtime": {
"go": "go1.24.3",
"goroutines": 1434
},
"memory": {
"alloc": "3.52 MiB",
"sys": "23.14 MiB",
"heap_alloc": "3.52 MiB",
"heap_idle": "6.11 MiB",
"heap_inuse": "5.92 MiB",
"heap_objects": 21667,
"gc": 1
},
"database": {
"total_connections": 1,
"active_connections": 0
},
"inbound_requests": 0,
"inbound_failed_requests": 0,
"outbound_requests": 0,
"outbound_processing_requests": 0,
"outbound_failed_requests": 0,
"queue": {
"size": 0,
"backlog_latency_secs": 0
},
"event": {
"pending": 0
}
}Response
200 - application/json
OK
The response is of type object.
⌘I