/// <summary> /// Initializes a new instance of the <see cref="TimeSeriesOptions"/> class. /// </summary> /// <param name="timeField">The name of the top-level field to be used for time.</param> /// <param name="metaField">The name of the top-level field describing the series upon which related data will be grouped.</param> /// <param name="granularity">The <see cref="TimeSeriesGranularity"/> for the time series.</param> public TimeSeriesOptions(string timeField, Optional <string> metaField = default, Optional <TimeSeriesGranularity?> granularity = default) { _timeField = Ensure.IsNotNullOrEmpty(timeField, nameof(timeField)); _metaField = metaField.WithDefault(null); _granularity = granularity.WithDefault(null); }