LCOV - code coverage report | ||||||||||||||||||||||
![]() | ||||||||||||||||||||||
|
||||||||||||||||||||||
![]() |
Line data Source code 1 : use std::sync::Arc; 2 : 3 : use axum::extract::State; 4 : use axum::response::Response; 5 : use http::StatusCode; 6 : 7 : use crate::compute::ComputeNode; 8 : use crate::http::JsonResponse; 9 : 10 : /// Get startup metrics. 11 0 : pub(in crate::http) async fn get_metrics(State(compute): State<Arc<ComputeNode>>) -> Response { 12 0 : let metrics = compute.state.lock().unwrap().metrics.clone(); 13 0 : JsonResponse::success(StatusCode::OK, metrics) 14 0 : } |
![]() |
Generated by: LCOV version 2.1-beta |