Struct cloudwatch_logs_upload::QueuedBatches
source · pub struct QueuedBatches { /* private fields */ }
Expand description
Internal interface for creating batches of events.
This shouldn’t normally need to be used directly, but is exposed in case the BatchUploader interface doesn’t behave quite the way you want, you might still find value in using QueuedBatches to handle the various batch upload limits.
Implementations§
source§impl QueuedBatches
impl QueuedBatches
sourcepub fn add_event(&mut self, event: InputLogEvent) -> Result<(), Error>
pub fn add_event(&mut self, event: InputLogEvent) -> Result<(), Error>
Add a new event.
There are a couple AWS limits not enforced yet:
-
None of the log events in the batch can be more than 2 hours in the future
-
None of the log events in the batch can be older than 14 days or older than the retention period of the log group
Trait Implementations§
source§impl Default for QueuedBatches
impl Default for QueuedBatches
source§fn default() -> QueuedBatches
fn default() -> QueuedBatches
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueuedBatches
impl RefUnwindSafe for QueuedBatches
impl Send for QueuedBatches
impl Sync for QueuedBatches
impl Unpin for QueuedBatches
impl UnwindSafe for QueuedBatches
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