pub struct AuditResponse {
pub window: AuditWindow,
pub records: Vec<AuditEntry>,
pub record_count: usize,
pub per_route: BTreeMap<String, usize>,
pub backend_status: String,
pub request_id: Option<String>,
}Expand description
Response from GET /v1/audit. Mirrors the App-side AuditResponse in
cleanlib-app::verbs. See AuditEntry for the CLEANLIB-366 field-name
alignment note.
backend_status is "wired" when the App has an AuditReader attached
and the read succeeded, "not_wired" when no reader is configured, or
"read_error" when the reader errored. CLI callers surface this signal
so customers can distinguish “empty because no rows” from “empty because
the audit backend is offline”.
Fields§
§window: AuditWindow§records: Vec<AuditEntry>§record_count: usize§per_route: BTreeMap<String, usize>§backend_status: String§request_id: Option<String>CLEANLIB-480 · the x-request-id header the App emits on every
response — populated from the RESPONSE HEADER by
transport::Client::audit. Distinct from AuditEntry::request_id
(which is the record-scoped request identifier PERSISTED PER ROW);
this is the ULID of the current GET /v1/audit call that returned
this response body. See PolicyPreviewResponse::request_id for
the rationale.
Trait Implementations§
Source§impl Clone for AuditResponse
impl Clone for AuditResponse
Source§fn clone(&self) -> AuditResponse
fn clone(&self) -> AuditResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more