pub struct ExportManager { /* private fields */ }Expand description
Export manager for coordinating data exports
Implementations§
Source§impl ExportManager
impl ExportManager
Sourcepub async fn new(config: ExportConfig) -> Result<Self, MonitoringError>
pub async fn new(config: ExportConfig) -> Result<Self, MonitoringError>
Create new export manager
Sourcepub async fn start(&self) -> Result<(), MonitoringError>
pub async fn start(&self) -> Result<(), MonitoringError>
Start export manager
Sourcepub async fn stop(&self) -> Result<(), MonitoringError>
pub async fn stop(&self) -> Result<(), MonitoringError>
Stop export manager
Sourcepub async fn get_status(&self) -> String
pub async fn get_status(&self) -> String
Get export manager status
Sourcepub async fn export_metrics(
&self,
data: ExportData,
) -> Result<(), MonitoringError>
pub async fn export_metrics( &self, data: ExportData, ) -> Result<(), MonitoringError>
Export metrics data
Auto Trait Implementations§
impl Freeze for ExportManager
impl !RefUnwindSafe for ExportManager
impl Send for ExportManager
impl Sync for ExportManager
impl Unpin for ExportManager
impl !UnwindSafe for ExportManager
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