Clean up unused imports and fix build warnings
- Remove unused imports (Duration, HashMap, SharedError, DateTime, etc.) - Fix unused variables by prefixing with underscore - Remove redundant dashboard.toml config file - Update theme imports to use only needed components - Maintain all functionality while reducing warnings - Add srv02 to predefined hosts configuration - Remove unused broadcast_command methods
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
use cm_dashboard_shared::{Metric, Status};
|
||||
use std::collections::HashMap;
|
||||
use std::time::{Duration, Instant};
|
||||
use tracing::{debug, info};
|
||||
use std::time::Instant;
|
||||
|
||||
pub mod store;
|
||||
pub mod subscription;
|
||||
|
||||
pub use store::MetricStore;
|
||||
pub use subscription::SubscriptionManager;
|
||||
|
||||
/// Widget types that can subscribe to metrics
|
||||
#[derive(Debug, Clone, Copy, Hash, Eq, PartialEq)]
|
||||
@@ -21,13 +18,6 @@ pub enum WidgetType {
|
||||
Alerts,
|
||||
}
|
||||
|
||||
/// Metric subscription entry
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct MetricSubscription {
|
||||
pub widget_type: WidgetType,
|
||||
pub metric_names: Vec<String>,
|
||||
}
|
||||
|
||||
/// Historical metric data point
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct MetricDataPoint {
|
||||
|
||||
Reference in New Issue
Block a user