pub struct PipelineManager { /* private fields */ }Expand description
Manages multiple pipelines
Implementations§
Source§impl PipelineManager
impl PipelineManager
pub fn new() -> Self
pub fn with_metrics(metrics: Arc<MetricsRegistry>) -> Self
Sourcepub fn register(&self, config: PipelineConfig) -> Uuid
pub fn register(&self, config: PipelineConfig) -> Uuid
Register a new pipeline
Sourcepub fn process_event(&self, event: &Event) -> Vec<(Uuid, JsonValue)>
pub fn process_event(&self, event: &Event) -> Vec<(Uuid, JsonValue)>
Process event through all matching pipelines
Sourcepub fn list(&self) -> Vec<PipelineConfig>
pub fn list(&self) -> Vec<PipelineConfig>
List all pipelines
Sourcepub fn all_stats(&self) -> Vec<PipelineStats>
pub fn all_stats(&self) -> Vec<PipelineStats>
Get statistics for all pipelines
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipelineManager
impl !RefUnwindSafe for PipelineManager
impl Send for PipelineManager
impl Sync for PipelineManager
impl Unpin for PipelineManager
impl UnsafeUnpin for PipelineManager
impl !UnwindSafe for PipelineManager
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