bucketwarden_server/state/
health.rs1use super::*;
2
3#[derive(Clone, Debug, Serialize)]
4pub struct RuntimeHealth {
5 pub status: &'static str,
6 pub bucket_count: usize,
7 pub object_version_count: usize,
8 pub multipart_upload_count: usize,
9 pub audit_event_count: usize,
10 pub last_replication_sequence: Option<u64>,
11}
12
13#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
14pub struct TenantRuntimeMetrics {
15 pub tenant_id: String,
16 pub bucket_count: usize,
17 pub object_version_count: usize,
18 pub credential_count: usize,
19 pub policy_count: usize,
20}