[−][src]Crate cloudwatch_logs_upload
Structs
BatchUploader | Main interface for uploading logs in batches to AWS CloudWatch Logs. |
QueuedBatches | Internal interface for creating batches of events. |
TimestampRange | An inclusive range of timestamps. |
UploadTarget | 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 Definitions
Timestamp | The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. |