fixed comments
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
|
||||
|
||||
//! # Metrics Module
|
||||
//!
|
||||
//! This module orchestrates the collection and reporting of hardware and network metrics for WatcherAgent.
|
||||
//!
|
||||
//! ## Responsibilities
|
||||
//! - **Metric Collection:** Gathers real-time statistics from all hardware subsystems (CPU, GPU, RAM, disk, network).
|
||||
//! - **Reporting:** Periodically sends metrics to the backend server using the API module.
|
||||
//! - **Error Handling:** Robust to hardware failures and network errors, with retry logic and logging.
|
||||
//!
|
||||
//! ## Usage
|
||||
//! The [`Collector`] struct is instantiated in the main loop and runs as a background task, continuously collecting and reporting metrics.
|
||||
/// # Metrics Module
|
||||
///
|
||||
/// This module orchestrates the collection and reporting of hardware and network metrics for WatcherAgent.
|
||||
///
|
||||
/// ## Responsibilities
|
||||
/// - **Metric Collection:** Gathers real-time statistics from all hardware subsystems (CPU, GPU, RAM, disk, network).
|
||||
/// - **Reporting:** Periodically sends metrics to the backend server using the API module.
|
||||
/// - **Error Handling:** Robust to hardware failures and network errors, with retry logic and logging.
|
||||
///
|
||||
/// ## Usage
|
||||
/// The [`Collector`] struct is instantiated in the main loop and runs as a background task, continuously collecting and reporting metrics.
|
||||
use std::error::Error;
|
||||
use std::time::Duration;
|
||||
|
||||
|
Reference in New Issue
Block a user