pub struct IncrementalMetrics {
pub system_id: String,
pub timestamp: DateTime<Utc>,
pub indexing_metrics: IndexingMetrics,
pub system_metrics: SystemMetrics,
pub operation_metrics: OperationMetrics,
pub health_metrics: HealthMetrics,
pub error_metrics: ErrorMetrics,
pub custom_metrics: HashMap<String, f64>,
}Expand description
Comprehensive metrics for incremental indexing
Fields§
§system_id: StringSystem identification
timestamp: DateTime<Utc>Metrics timestamp
indexing_metrics: IndexingMetricsIndexing performance metrics
system_metrics: SystemMetricsSystem performance metrics
operation_metrics: OperationMetricsOperation metrics
health_metrics: HealthMetricsHealth metrics
error_metrics: ErrorMetricsError metrics
custom_metrics: HashMap<String, f64>Custom metrics
Implementations§
Source§impl IncrementalMetrics
impl IncrementalMetrics
Sourcepub fn update(&mut self, update_data: MetricsUpdate)
pub fn update(&mut self, update_data: MetricsUpdate)
Update metrics with new data
Sourcepub fn calculate_system_score(&self) -> f64
pub fn calculate_system_score(&self) -> f64
Calculate overall system score
Trait Implementations§
Source§impl Clone for IncrementalMetrics
impl Clone for IncrementalMetrics
Source§fn clone(&self) -> IncrementalMetrics
fn clone(&self) -> IncrementalMetrics
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 IncrementalMetrics
impl Debug for IncrementalMetrics
Source§impl<'de> Deserialize<'de> for IncrementalMetrics
impl<'de> Deserialize<'de> for IncrementalMetrics
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 IncrementalMetrics
impl RefUnwindSafe for IncrementalMetrics
impl Send for IncrementalMetrics
impl Sync for IncrementalMetrics
impl Unpin for IncrementalMetrics
impl UnwindSafe for IncrementalMetrics
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