auditaur_core/protocol/
mod.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
4#[serde(rename_all = "camelCase")]
5pub struct DoctorReport {
6 pub ok: bool,
7 pub checks: Vec<DoctorCheck>,
8}
9
10#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
11#[serde(rename_all = "camelCase")]
12pub struct DoctorCheck {
13 pub name: String,
14 pub ok: bool,
15 pub message: String,
16}
17
18#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
19#[serde(rename_all = "camelCase")]
20pub struct TraceSummary {
21 pub trace_id: String,
22 pub root_span_name: Option<String>,
23 pub start_time_unix_nanos: Option<i64>,
24 pub duration_unix_nanos: Option<i64>,
25 pub status_code: Option<String>,
26 pub span_count: usize,
27 pub error_count: usize,
28}