9#ifndef __CWIST_HEALTHZ_H__
10#define __CWIST_HEALTHZ_H__
cwist_health_probe_t(* cwist_health_probe_fn)(void *ctx)
User-provided probe callback.
void cwist_healthz_unregister(const char *name)
Unregister a previously registered probe.
cwist_health_status
Classification of a subsystem health check.
enum cwist_health_status cwist_health_status_t
Classification of a subsystem health check.
bool cwist_healthz_register(const char *name, cwist_health_probe_fn fn, void *ctx)
Register a custom probe function.
void cwist_healthz_run(cwist_health_probe_t *out_probes, size_t max_probes, size_t *out_count, cwist_health_status_t *out_overall)
Evaluate all probes and return the aggregate status.
void cwist_app_healthz(cwist_http_response *res)
Populate an HTTP response with the healthz JSON payload.
void cwist_app_enable_healthz(struct cwist_app *app)
Register built-in health check routes on an application.
struct cwist_health_probe cwist_health_probe_t
Result of a single probe.
HTTP Protocol Definitions and Helpers.
Main Application Context.
Result of a single probe.
cwist_health_status_t status
HTTP Response Object. Supports standard string body or Zero-Copy pointer body.