pub struct TenantStoreStats {
pub total_events: usize,
pub total_entities: usize,
pub total_event_types: usize,
pub total_ingested: u64,
pub event_types: HashMap<String, usize>,
pub oldest_event: Option<DateTime<Utc>>,
pub newest_event: Option<DateTime<Utc>>,
}Expand description
Tenant-scoped event-store statistics (#230).
Mirrors StoreStats’ counters so existing consumers keep working, and adds
the per-type census and time range that clients previously derived by paging
the whole event stream.
Fields§
§total_events: usize§total_entities: usize§total_event_types: usize§total_ingested: u64§event_types: HashMap<String, usize>event_type -> count, for this tenant only.
oldest_event: Option<DateTime<Utc>>§newest_event: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for TenantStoreStats
impl Clone for TenantStoreStats
Source§fn clone(&self) -> TenantStoreStats
fn clone(&self) -> TenantStoreStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TenantStoreStats
impl Debug for TenantStoreStats
Auto Trait Implementations§
impl Freeze for TenantStoreStats
impl RefUnwindSafe for TenantStoreStats
impl Send for TenantStoreStats
impl Sync for TenantStoreStats
impl Unpin for TenantStoreStats
impl UnsafeUnpin for TenantStoreStats
impl UnwindSafe for TenantStoreStats
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more