pub fn record_health_check_to_inspect(
parent: &Node,
level: Option<HealthCheckRequest>,
result: Result<&HealthCheckResponse, HealthCheckError>,
) -> NodeExpand description
Records the result of a health check under a new HEALTH_INSPECT_NODE_NAME child of
parent and returns it. Dropping the returned node removes the record again.
level is the requested level of the check, or None when the record does not come from a
health check request (i.e. a self-reported fault). Errors are recorded as status = "ERROR"
with an error property. The diagnostics and conditions children are only created when
non-empty, matching the C++ driver SDK mirror.
Drivers that publish Inspect on demand (for example via
crate::DriverContext::inspect_content_publisher) can call this directly when populating
their tree; drivers with a long-lived inspector should prefer HealthCheckInspect.