Expand description
MongoDB time series collection configuration and validation.
Time series collections in MongoDB use automatic bucketing for efficient
storage and querying of time-stamped measurement data. This module
provides typed configuration for creating and validating time series
collections.
§Important Constraints
- Time series collections only accept
insertoperations; other write modes are rejected at the sink level. - Granularity can only be increased (seconds → minutes → hours), never decreased after collection creation.
MongoDBdoes not supportwatch()(change streams) on time series collections — the source pre-flight guard rejects these.
Structs§
- Time
Series Config - Configuration for a
MongoDBtime series collection.
Enums§
- Collection
Kind - Whether the target collection is a standard or time series collection.
- Time
Series Granularity - Time series bucketing granularity.