Skip to main content

BackendEventIngestClient

Trait BackendEventIngestClient 

Source
pub trait BackendEventIngestClient {
    // Required method
    fn ingest(
        &self,
        batch: &EventBatch,
    ) -> Result<EventIngestResult, BackendError>;
}
Expand description

Port for backend event ingestion.

Implementations handle HTTP communication to submit local audit events to the backend for centralized observability.

Required Methods§

Source

fn ingest(&self, batch: &EventBatch) -> Result<EventIngestResult, BackendError>

Submit a batch of audit events to the backend.

The batch includes an idempotency key so retries do not produce duplicate events on the server.

Implementors§