pub struct EventIntake { /* private fields */ }Expand description
Unified event intake orchestrator.
Implementations§
Source§impl EventIntake
impl EventIntake
Sourcepub fn from_ctx(ctx: &Ctx, cursor_arg: Option<&str>) -> Self
pub fn from_ctx(ctx: &Ctx, cursor_arg: Option<&str>) -> Self
Construct an intake instance from CLI context and optional --cursor flag.
Sourcepub fn new(store: StateStore, cursor_arg: Option<&str>, quiet: bool) -> Self
pub fn new(store: StateStore, cursor_arg: Option<&str>, quiet: bool) -> Self
Construct an intake instance with explicit store, cursor argument, and quiet flag.
Sourcepub fn effective_cursor(&self) -> Option<&str>
pub fn effective_cursor(&self) -> Option<&str>
Effective cursor to use for request pagination.
Sourcepub fn persistence_enabled(&self) -> bool
pub fn persistence_enabled(&self) -> bool
Whether cursor and seen persistence are active.
Sourcepub fn replay_mode(&self) -> bool
pub fn replay_mode(&self) -> bool
Whether intake is operating in replay mode (explicit cursor passed).
Sourcepub fn metrics(&self) -> IntakeMetrics
pub fn metrics(&self) -> IntakeMetrics
Snapshot of intake metrics.
Sourcepub fn ingest_poll_page(
&mut self,
page: TolerantEventPage,
) -> IngestBatchOutcome
pub fn ingest_poll_page( &mut self, page: TolerantEventPage, ) -> IngestBatchOutcome
Ingest a tolerant event page from an HTTP poll response.
Sourcepub fn ingest_batch(
&mut self,
events: Vec<AgentEvent>,
unparseable: Vec<UnparseableEvent>,
meta: PaginatedMeta,
) -> IngestBatchOutcome
pub fn ingest_batch( &mut self, events: Vec<AgentEvent>, unparseable: Vec<UnparseableEvent>, meta: PaginatedMeta, ) -> IngestBatchOutcome
Ingest a batch of typed events, unparseable items, and pagination metadata.
Sourcepub fn ingest_stream_payload(&mut self, payload: &Value) -> StreamItemOutcome
pub fn ingest_stream_payload(&mut self, payload: &Value) -> StreamItemOutcome
Ingest a single WebSocket event payload.
Sourcepub fn record_unparseable(&mut self)
pub fn record_unparseable(&mut self)
Record an unparseable non-JSON text frame.
Auto Trait Implementations§
impl Forget for EventIntake
impl Freeze for EventIntake
impl Move for EventIntake
impl RefUnwindSafe for EventIntake
impl Send for EventIntake
impl Sync for EventIntake
impl Unpin for EventIntake
impl UnsafeUnpin for EventIntake
impl UnwindSafe for EventIntake
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more