hive-c0re: annotate remaining dashboard routes with utoipa

This commit is contained in:
damocles 2026-07-31 23:00:12 +02:00 committed by mara
commit 582ebe5eee
21 changed files with 738 additions and 45 deletions

View file

@ -26,6 +26,7 @@ use std::time::Duration;
use serde::Serialize;
use tokio::time::sleep;
use utoipa::ToSchema;
use crate::coordinator::Coordinator;
@ -36,7 +37,7 @@ const CPU_SAMPLE: Duration = Duration::from_millis(200);
const MACHINE_SLICE: &str = "/sys/fs/cgroup/machine.slice";
#[derive(Debug, Serialize)]
#[derive(Debug, Serialize, ToSchema)]
pub struct ContainerResource {
/// Agent name (without the `h-` machine prefix).
pub name: String,