pub struct RealtimeDashboard { /* private fields */ }Expand description
Real-time dashboard server
Implementations§
Source§impl RealtimeDashboard
impl RealtimeDashboard
Sourcepub fn new(config: DashboardConfig) -> Self
pub fn new(config: DashboardConfig) -> Self
Create new real-time dashboard
Sourcepub fn add_metric(
&self,
category: MetricCategory,
label: String,
value: f64,
) -> Result<()>
pub fn add_metric( &self, category: MetricCategory, label: String, value: f64, ) -> Result<()>
Add a metric data point
Sourcepub fn add_metrics(
&self,
metrics: Vec<(MetricCategory, String, f64)>,
) -> Result<()>
pub fn add_metrics( &self, metrics: Vec<(MetricCategory, String, f64)>, ) -> Result<()>
Add multiple metrics at once
Sourcepub fn create_alert(
&self,
severity: AlertSeverity,
category: MetricCategory,
title: String,
message: String,
value: Option<f64>,
threshold: Option<f64>,
) -> Result<()>
pub fn create_alert( &self, severity: AlertSeverity, category: MetricCategory, title: String, message: String, value: Option<f64>, threshold: Option<f64>, ) -> Result<()>
Create an alert
Sourcepub fn get_historical_data(
&self,
category: &MetricCategory,
) -> Vec<MetricDataPoint>
pub fn get_historical_data( &self, category: &MetricCategory, ) -> Vec<MetricDataPoint>
Get historical data for a category
Sourcepub fn get_system_stats(&self) -> SystemStats
pub fn get_system_stats(&self) -> SystemStats
Get current system stats
Sourcepub fn subscribe(&self) -> BroadcastStream<WebSocketMessage>
pub fn subscribe(&self) -> BroadcastStream<WebSocketMessage>
Subscribe to WebSocket messages
Sourcepub fn update_config(&self, new_config: DashboardConfig) -> Result<()>
pub fn update_config(&self, new_config: DashboardConfig) -> Result<()>
Update dashboard configuration
Sourcepub fn get_config(&self) -> DashboardConfig
pub fn get_config(&self) -> DashboardConfig
Get current configuration
Sourcepub async fn detect_metric_anomalies(
&self,
category: &MetricCategory,
) -> Result<Vec<AnomalyDetection>>
pub async fn detect_metric_anomalies( &self, category: &MetricCategory, ) -> Result<Vec<AnomalyDetection>>
AI-powered anomaly detection for metric patterns
Sourcepub fn generate_advanced_visualizations(
&self,
) -> Result<DashboardVisualizationData>
pub fn generate_advanced_visualizations( &self, ) -> Result<DashboardVisualizationData>
Generate advanced visualization data for modern dashboard components
Sourcepub async fn predict_performance_trends(
&self,
category: &MetricCategory,
hours_ahead: u64,
) -> Result<PerformancePrediction>
pub async fn predict_performance_trends( &self, category: &MetricCategory, hours_ahead: u64, ) -> Result<PerformancePrediction>
AI-powered performance prediction based on historical trends
Sourcepub fn apply_dashboard_theme(&self, theme: DashboardTheme) -> Result<()>
pub fn apply_dashboard_theme(&self, theme: DashboardTheme) -> Result<()>
Advanced dashboard theme and customization support
Sourcepub async fn export_dashboard_data(
&self,
format: ExportFormat,
time_range: Option<(u64, u64)>,
) -> Result<Vec<u8>>
pub async fn export_dashboard_data( &self, format: ExportFormat, time_range: Option<(u64, u64)>, ) -> Result<Vec<u8>>
Export dashboard data in various formats
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RealtimeDashboard
impl !RefUnwindSafe for RealtimeDashboard
impl Send for RealtimeDashboard
impl Sync for RealtimeDashboard
impl Unpin for RealtimeDashboard
impl UnsafeUnpin for RealtimeDashboard
impl !UnwindSafe for RealtimeDashboard
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.