Expand description
Rust library for uploading events to AWS CloudWatch Logs.
Structs§
- Batch
Uploader - Main interface for uploading logs in batches to AWS CloudWatch Logs.
- Queued
Batches - Internal interface for creating batches of events.
- Timestamp
Range - An inclusive range of timestamps.
- Upload
Target - Log group and stream names.
Enums§
- Error
- Unified event type for upload errors.
Constants§
- EVENT_
OVERHEAD - The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
- MAX_
BATCH_ SIZE - The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
- MAX_
DURATION_ MILLIS - A batch of log events in a single request cannot span more than 24 hours. This constant is in milliseconds.
- MAX_
EVENTS_ IN_ BATCH - The maximum number of log events in a batch is 10,000.
Functions§
- get_
current_ timestamp - Get the current timestamp. Returns 0 if the time is before the unix epoch.
Type Aliases§
- Timestamp
- The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.