MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / health

Function health

crates/openshell-server/src/http.rs:91–93  ·  view source on GitHub ↗

Convenience alias of [`readyz`] for monitors that probe `/health`.

(State(state): State<Arc<HealthRouterState>>)

Source from the content-addressed store, hash-verified

89
90/// Convenience alias of [`readyz`] for monitors that probe `/health`.
91async fn health(State(state): State<Arc<HealthRouterState>>) -> impl IntoResponse {
92 render_response(&state.health.borrow())
93}
94
95fn render_response(state: &HealthState) -> (StatusCode, Json<HealthResponse>) {
96 let database = render_database(state);

Callers

nothing calls this directly

Calls 1

render_responseFunction · 0.85

Tested by

no test coverage detected