Class TimeSeriesOptions

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

public class TimeSeriesOptions

Inheritance

TimeSeriesOptions

Inherited Members

Constructors

TimeSeriesOptions(string, Optional, Optional<TimeSeriesGranularity?>, Optional<int?>, Optional<int?>)

Initializes a new instance of the TimeSeriesOptions class.

Properties

BucketMaxSpanSeconds

The maximum time between timestamps in the same bucket.

BucketRoundingSeconds

The interval used to round down the first timestamp when opening a new bucket.

Granularity

The coarse granularity of time series data.

MetaField

The name of the field which contains metadata in each time series document.

TimeField

The name of the field which contains the date and time in each time series document.

Methods

ToBsonDocument()

The BSON representation of the time series options.