Skip to main content

Module timeseries

Module timeseries 

Source
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 insert operations; other write modes are rejected at the sink level.
  • Granularity can only be increased (seconds → minutes → hours), never decreased after collection creation.
  • MongoDB does not support watch() (change streams) on time series collections — the source pre-flight guard rejects these.

Structs§

TimeSeriesConfig
Configuration for a MongoDB time series collection.

Enums§

CollectionKind
Whether the target collection is a standard or time series collection.
TimeSeriesGranularity
Time series bucketing granularity.