Liveness check
curl --request GET \
--url https://api.agentsfleet.net/healthzimport requests
url = "https://api.agentsfleet.net/healthz"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.agentsfleet.net/healthz', 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.agentsfleet.net/healthz",
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://api.agentsfleet.net/healthz"
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://api.agentsfleet.net/healthz")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/healthz")
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{
"commit": "<string>",
"service": "<string>",
"status": "<string>",
"version": "<string>"
}Health
Liveness check
Returns 200 as long as the process is alive and able to serve HTTP. Does not probe dependencies — use /readyz for readiness (database + queue).
GET
/
healthz
Liveness check
curl --request GET \
--url https://api.agentsfleet.net/healthzimport requests
url = "https://api.agentsfleet.net/healthz"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.agentsfleet.net/healthz', 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.agentsfleet.net/healthz",
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://api.agentsfleet.net/healthz"
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://api.agentsfleet.net/healthz")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agentsfleet.net/healthz")
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{
"commit": "<string>",
"service": "<string>",
"status": "<string>",
"version": "<string>"
}Response
200 - application/json
The process is alive
The process is up and answering HTTP.
Reports the build and nothing about its dependencies. A liveness answer that went red when the database blinked would get the process killed and restarted. That does nothing about the database, and it drops every request the instance was serving.
The commit this binary was built from, or unknown when the build was
not told.
The service answering: agentsfleetd.
Always ok from a live process. One word to switch on, so a reader
never has to treat an empty document as a signal.
The version this binary was cut from.