pub struct EventStatistics {Show 20 fields
pub field_value_sets: u64,
pub atom_creations: u64,
pub atom_updates: u64,
pub molecule_creations: u64,
pub molecule_updates: u64,
pub schema_loads: u64,
pub schema_changes: u64,
pub transform_triggers: u64,
pub transform_executions: u64,
pub transform_successes: u64,
pub transform_failures: u64,
pub transform_registrations: u64,
pub query_executions: u64,
pub mutation_executions: u64,
pub total_events: u64,
pub monitoring_start_time: u64,
pub transform_execution_times: Vec<(String, u64)>,
pub transform_stats: HashMap<String, TransformStats>,
pub query_stats: HashMap<String, QueryStats>,
pub mutation_stats: HashMap<String, MutationStats>,
}Expand description
Statistics about system activity tracked by the event monitor
Fields§
§field_value_sets: u64§atom_creations: u64§atom_updates: u64§molecule_creations: u64§molecule_updates: u64§schema_loads: u64§schema_changes: u64§transform_triggers: u64§transform_executions: u64§transform_successes: u64§transform_failures: u64§transform_registrations: u64§query_executions: u64§mutation_executions: u64§total_events: u64§monitoring_start_time: u64§transform_execution_times: Vec<(String, u64)>Track execution times for performance monitoring
transform_stats: HashMap<String, TransformStats>Track success/failure rates per transform
query_stats: HashMap<String, QueryStats>Track query performance by schema and type
mutation_stats: HashMap<String, MutationStats>Track mutation performance by schema and operation
Implementations§
Source§impl EventStatistics
impl EventStatistics
pub fn increment_field_value_sets(&mut self)
pub fn increment_atom_creations(&mut self)
pub fn increment_atom_updates(&mut self)
pub fn increment_molecule_creations(&mut self)
pub fn increment_molecule_updates(&mut self)
pub fn increment_schema_loads(&mut self)
pub fn increment_schema_changes(&mut self)
pub fn increment_transform_triggers(&mut self)
pub fn increment_transform_registrations(&mut self)
pub fn increment_transform_executions( &mut self, transform_id: &str, success: bool, execution_time_ms: u64, )
pub fn increment_query_executions( &mut self, schema: &str, query_type: &str, execution_time_ms: u64, result_count: usize, )
pub fn increment_mutation_executions(&mut self, event: &MutationExecuted)
Trait Implementations§
Source§impl Clone for EventStatistics
impl Clone for EventStatistics
Source§fn clone(&self) -> EventStatistics
fn clone(&self) -> EventStatistics
Returns a duplicate of the value. Read more
1.0.0 · 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 EventStatistics
impl Debug for EventStatistics
Source§impl Default for EventStatistics
impl Default for EventStatistics
Source§fn default() -> EventStatistics
fn default() -> EventStatistics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventStatistics
impl<'de> Deserialize<'de> for EventStatistics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventStatistics
impl RefUnwindSafe for EventStatistics
impl Send for EventStatistics
impl Sync for EventStatistics
impl Unpin for EventStatistics
impl UnwindSafe for EventStatistics
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.