Class DateHistogramCompositeAggregationSourceDescriptor<T>
A values source that can be applied on date values to build fixed size interval over the values.
The interval parameter defines a date/time expression that determines how values should be transformed.
For instance an interval set to month will translate any values to its closest month interval..
Inheritance
DateHistogramCompositeAggregationSourceDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class DateHistogramCompositeAggregationSourceDescriptor<T> : CompositeAggregationSourceDescriptorBase<DateHistogramCompositeAggregationSourceDescriptor<T>, IDateHistogramCompositeAggregationSource, T>, IDescriptor, IDateHistogramCompositeAggregationSource, ICompositeAggregationSource
Type Parameters
Constructors
|
Edit this page
View Source
DateHistogramCompositeAggregationSourceDescriptor(string)
Declaration
public DateHistogramCompositeAggregationSourceDescriptor(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Methods
|
Edit this page
View Source
CalendarInterval(DateMathTime)
The calendar interval to use when bucketing documents
Declaration
public DateHistogramCompositeAggregationSourceDescriptor<T> CalendarInterval(DateMathTime interval)
Parameters
Returns
|
Edit this page
View Source
CalendarInterval(DateInterval?)
The calendar interval to use when bucketing documents
Declaration
public DateHistogramCompositeAggregationSourceDescriptor<T> CalendarInterval(DateInterval? interval)
Parameters
Returns
|
Edit this page
View Source
FixedInterval(Time)
The fixed interval to use when bucketing documents
Declaration
public DateHistogramCompositeAggregationSourceDescriptor<T> FixedInterval(Time interval)
Parameters
Type |
Name |
Description |
Time |
interval |
|
Returns
|
Edit this page
View Source
Used to indicate that bucketing should use a different time zone.
Time zones may either be specified as an ISO 8601 UTC offset (e.g. +01:00 or -08:00)
or as a timezone id, an identifier used in the TZ database like America/Los_Angeles.
Declaration
public DateHistogramCompositeAggregationSourceDescriptor<T> Format(string format)
Parameters
Type |
Name |
Description |
string |
format |
|
Returns
|
Edit this page
View Source
TimeZone(string)
Used to indicate that bucketing should use a different time zone.
Time zones may either be specified as an ISO 8601 UTC offset (e.g. +01:00 or -08:00)
or as a timezone id, an identifier used in the TZ database like America/Los_Angeles.
Declaration
public DateHistogramCompositeAggregationSourceDescriptor<T> TimeZone(string timezone)
Parameters
Type |
Name |
Description |
string |
timezone |
|
Returns
Implements
Extension Methods