pub struct ExportManager { /* private fields */ }Expand description
Main export manager
Implementations§
Source§impl ExportManager
impl ExportManager
pub async fn new(config: ExportConfig) -> RragResult<Self>
pub async fn start(&self) -> RragResult<()>
pub async fn stop(&self) -> RragResult<()>
pub async fn is_healthy(&self) -> bool
pub async fn export_metrics( &self, metrics: Vec<Metric>, format: ExportFormat, destinations: Vec<String>, filters: ExportFilters, ) -> RragResult<ExportResult>
pub async fn generate_and_export_report( &self, config: ReportConfig, data: SystemOverview, destinations: Vec<String>, ) -> RragResult<ExportResult>
pub async fn get_export_history( &self, limit: Option<usize>, ) -> Vec<ExportResult>
pub async fn get_export_status(&self, export_id: &str) -> Option<ExportResult>
pub async fn test_destination(&self, destination_name: &str) -> RragResult<bool>
pub async fn add_destination( &self, name: String, destination: Box<dyn ExportDestination>, )
pub async fn remove_destination(&self, name: &str)
pub async fn list_destinations(&self) -> Vec<String>
pub async fn get_export_stats(&self) -> ExportStats
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