Liveness probe
curl --request GET \
--url https://streaming-hub.sandbox.lerian.net/healthpackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://streaming-hub.sandbox.lerian.net/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))
}const options = {method: 'GET'};
fetch('https://streaming-hub.sandbox.lerian.net/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://streaming-hub.sandbox.lerian.net/health"
response = requests.get(url)
print(response.text)<string>Liveness probe
Returns 200 with the text healthy once the main port serves, independent of dependency health. Unauthenticated.
GET
/
health
Liveness probe
curl --request GET \
--url https://streaming-hub.sandbox.lerian.net/healthpackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://streaming-hub.sandbox.lerian.net/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))
}const options = {method: 'GET'};
fetch('https://streaming-hub.sandbox.lerian.net/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://streaming-hub.sandbox.lerian.net/health"
response = requests.get(url)
print(response.text)<string>Response
200 - text/plain
The process is alive.
The response is of type string.
Was this page helpful?

