public DateMathExpression(Union <DateTime, string> anchor, TimeUnitExpression range, DateMathOperation operation)
 {
     anchor.ThrowIfNull(nameof(anchor));
     range.ThrowIfNull(nameof(range));
     operation.ThrowIfNull(nameof(operation));
     this.Anchor = anchor;
     Self.Ranges.Add(Tuple.Create(operation, range));
 }
 /// <inheritdoc/>
 public SlowLogSearchFetchDescriptor ThresholdWarn(TimeUnitExpression time) => Assign(a => a.ThresholdWarn = time);
Exemplo n.º 3
0
 /// <inheritdoc/>
 public TtlIntervalSettingsDescriptor Interval(TimeUnitExpression interval) => Assign(a => a.Interval = interval);
 public DateHistogramAggregationDescriptor <T> Interval(TimeUnitExpression interval) => Assign(a => a.Interval = interval);
Exemplo n.º 5
0
 /// <inheritdoc/>
 public SlowLogSearchQueryDescriptor ThresholdTrace(TimeUnitExpression time) => Assign(a => a.ThresholdTrace = time);
 ///<inheritdoc/>
 public DiskBasedShardAllocationSettingsDescriptor UpdateInterval(TimeUnitExpression time) => Assign(a => a.UpdateInterval = time);
 /// <inheritdoc/>
 public Task <ISearchResponse <T> > ScrollAsync <T>(TimeUnitExpression scrollTime, ScrollId scrollId, Func <ScrollDescriptor <T>, IScrollRequest> selector = null) where T : class =>
 this.ScrollAsync <T>(selector.InvokeOrDefault(new ScrollDescriptor <T>().Scroll(scrollTime).ScrollId(scrollId)));
 /// <inheritdoc/>
 public TranslogSettingsDescriptor SyncInterval(TimeUnitExpression time) =>
 Assign(a => a.SyncInterval = time);
Exemplo n.º 9
0
 public FuzzyDateQueryDescriptor <T> Fuzziness(TimeUnitExpression fuzziness) => Assign(a => a.Fuzziness = fuzziness);
Exemplo n.º 10
0
 /// <inheritdoc/>
 public TranslogFlushSettingsDescriptor Interval(TimeUnitExpression time) => Assign(a => a.Interval = time);
Exemplo n.º 11
0
 /// <inheritdoc/>
 public TranslogFlushSettingsDescriptor ThresholdPeriod(TimeUnitExpression time) =>
 Assign(a => a.ThresholdPeriod = time);
 /// <inheritdoc/>
 public SlowLogIndexingDescriptor ThresholdWarn(TimeUnitExpression time) => Assign(a => a.ThresholdWarn = time);
Exemplo n.º 13
0
 ///<summary>Specify how long a consistent view of the index should be maintained for scrolled search</summary>
 public ScrollDescriptor <T> Scroll(TimeUnitExpression scroll) => Assign(a => a.Scroll = scroll);
Exemplo n.º 14
0
 public ScrollRequest(ScrollId scrollId, TimeUnitExpression scrollTimeout) : this(scrollId)
 {
     this.Scroll = scrollTimeout;
 }
 public DateMathExpression Operation(TimeUnitExpression expression, DateMathOperation operation)
 {
     Self.Ranges.Add(Tuple.Create(operation, expression));
     return(this);
 }
 public DateMathExpression Subtract(TimeUnitExpression expression)
 {
     Self.Ranges.Add(Tuple.Create(DateMathOperation.Subtract, expression));
     return(this);
 }