Download codex-rs/app-server-protocol/src/protocol/v2/diagnostics.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/diagnostics.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server-protocol/src/protocol/v2/diagnostics.rs
-
curl -L -o diagnostics.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/diagnostics.rs
1.14 kB
| use crate::JsonSchema; | |
| use crate::TS; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| pub struct ServerDiagnosticsParams {} | |
| pub struct ServerDiagnosticsResponse { | |
| pub process: ServerDiagnosticsProcess, | |
| pub gauges: Vec<ServerDiagnosticsGauge>, | |
| } | |
| pub struct ServerDiagnosticsProcess { | |
| pub id: u32, | |
| pub resident_memory_bytes: Option<u64>, | |
| pub physical_footprint_bytes: Option<u64>, | |
| } | |
| pub struct ServerDiagnosticsGauge { | |
| pub name: String, | |
| pub value: u64, | |
| } | |