Class TimeSeriesOptions
Defines the time series options to use when creating a time series collection. See https://www.mongodb.com/docs/manual/reference/command/create/ for supported options and https://www.mongodb.com/docs/manual/core/timeseries-collections/ for more information on time series collections.
- Inheritance
-
Time
Series Options
- Inherited Members
Constructors
- TimeSeriesOptions(string, Optional<string>, Optional<TimeSeriesGranularity?>, Optional<int?>, Optional<int?>)
Initializes a new instance of the Time
Series class.Options
Properties
- Bucket
Max Span Seconds The maximum time between timestamps in the same bucket.
- Bucket
Rounding Seconds The interval used to round down the first timestamp when opening a new bucket.
- Granularity
The coarse granularity of time series data.
- Meta
Field The name of the field which contains metadata in each time series document.
- Time
Field The name of the field which contains the date and time in each time series document.
Methods
- To
Bson Document() The BSON representation of the time series options.