diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 87910d3669..9ca80ed3b1 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -54112,11 +54112,21 @@ "compression": { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "type": "number" + }, + "execution_hint": { + "$ref": "#/components/schemas/_types.aggregations.TDigestExecutionHint" } } } ] }, + "_types.aggregations.TDigestExecutionHint": { + "type": "string", + "enum": [ + "default", + "high_accuracy" + ] + }, "_types.aggregations.BucketScriptAggregation": { "allOf": [ { @@ -55544,6 +55554,9 @@ "compression": { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "type": "number" + }, + "execution_hint": { + "$ref": "#/components/schemas/_types.aggregations.TDigestExecutionHint" } } } @@ -56032,6 +56045,9 @@ "compression": { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "type": "number" + }, + "execution_hint": { + "$ref": "#/components/schemas/_types.aggregations.TDigestExecutionHint" } } }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 551b985900..5b2830810a 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -33488,11 +33488,21 @@ "compression": { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "type": "number" + }, + "execution_hint": { + "$ref": "#/components/schemas/_types.aggregations.TDigestExecutionHint" } } } ] }, + "_types.aggregations.TDigestExecutionHint": { + "type": "string", + "enum": [ + "default", + "high_accuracy" + ] + }, "_types.aggregations.BucketScriptAggregation": { "allOf": [ { @@ -34920,6 +34930,9 @@ "compression": { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "type": "number" + }, + "execution_hint": { + "$ref": "#/components/schemas/_types.aggregations.TDigestExecutionHint" } } } @@ -35408,6 +35421,9 @@ "compression": { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "type": "number" + }, + "execution_hint": { + "$ref": "#/components/schemas/_types.aggregations.TDigestExecutionHint" } } }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 3bec95c7a4..d2536f6d37 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -57992,9 +57992,22 @@ "namespace": "_types" } } + }, + { + "description": "The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).\nTo use an implementation optimized for accuracy, set this parameter to high_accuracy instead.", + "name": "execution_hint", + "required": false, + "serverDefault": "default", + "type": { + "kind": "instance_of", + "type": { + "name": "TDigestExecutionHint", + "namespace": "_types.aggregations" + } + } } ], - "specLocation": "_types/aggregations/metric.ts#L57-L62" + "specLocation": "_types/aggregations/metric.ts#L57-L68" }, { "kind": "interface", @@ -58634,7 +58647,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L87-L99" + "specLocation": "_types/aggregations/metric.ts#L93-L105" }, { "kind": "enum", @@ -58664,7 +58677,7 @@ "name": "CardinalityExecutionMode", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/metric.ts#L64-L85" + "specLocation": "_types/aggregations/metric.ts#L70-L91" }, { "kind": "interface", @@ -60539,7 +60552,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L101-L106" + "specLocation": "_types/aggregations/metric.ts#L107-L112" }, { "kind": "interface", @@ -61096,7 +61109,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L108-L117" + "specLocation": "_types/aggregations/metric.ts#L114-L123" }, { "kind": "interface", @@ -61175,7 +61188,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L119-L122" + "specLocation": "_types/aggregations/metric.ts#L125-L128" }, { "kind": "interface", @@ -61585,7 +61598,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L124-L149" + "specLocation": "_types/aggregations/metric.ts#L130-L155" }, { "kind": "interface", @@ -61607,7 +61620,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L158-L163" + "specLocation": "_types/aggregations/metric.ts#L164-L169" }, { "kind": "interface", @@ -61629,7 +61642,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L151-L156" + "specLocation": "_types/aggregations/metric.ts#L157-L162" }, { "kind": "interface", @@ -61922,7 +61935,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L225-L230" + "specLocation": "_types/aggregations/metric.ts#L237-L242" }, { "kind": "interface", @@ -63541,7 +63554,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/metric.ts#L165-L165" + "specLocation": "_types/aggregations/metric.ts#L171-L171" }, { "kind": "interface", @@ -63603,9 +63616,22 @@ "namespace": "_types" } } + }, + { + "description": "The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).\nTo use an implementation optimized for accuracy, set this parameter to high_accuracy instead.", + "name": "execution_hint", + "required": false, + "serverDefault": "default", + "type": { + "kind": "instance_of", + "type": { + "name": "TDigestExecutionHint", + "namespace": "_types.aggregations" + } + } } ], - "specLocation": "_types/aggregations/metric.ts#L167-L176" + "specLocation": "_types/aggregations/metric.ts#L173-L188" }, { "kind": "interface", @@ -63683,7 +63709,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/metric.ts#L178-L178" + "specLocation": "_types/aggregations/metric.ts#L190-L190" }, { "kind": "interface", @@ -64677,7 +64703,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L180-L202" + "specLocation": "_types/aggregations/metric.ts#L192-L214" }, { "kind": "type_alias", @@ -64806,7 +64832,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L204-L223" + "specLocation": "_types/aggregations/metric.ts#L216-L235" }, { "kind": "interface", @@ -65333,7 +65359,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L239-L250" + "specLocation": "_types/aggregations/metric.ts#L262-L273" }, { "kind": "enum", @@ -65351,7 +65377,7 @@ "name": "RateMode", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/metric.ts#L252-L261" + "specLocation": "_types/aggregations/metric.ts#L275-L284" }, { "kind": "interface", @@ -65602,7 +65628,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L263-L289" + "specLocation": "_types/aggregations/metric.ts#L286-L312" }, { "kind": "interface", @@ -66826,7 +66852,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/metric.ts#L291-L291" + "specLocation": "_types/aggregations/metric.ts#L314-L314" }, { "kind": "interface", @@ -67131,7 +67157,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L293-L299" + "specLocation": "_types/aggregations/metric.ts#L316-L322" }, { "kind": "interface", @@ -67221,7 +67247,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/metric.ts#L301-L301" + "specLocation": "_types/aggregations/metric.ts#L324-L324" }, { "kind": "interface", @@ -67258,9 +67284,38 @@ "namespace": "_types" } } + }, + { + "description": "The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases).\nTo use an implementation optimized for accuracy, set this parameter to high_accuracy instead.", + "name": "execution_hint", + "required": false, + "serverDefault": "default", + "type": { + "kind": "instance_of", + "type": { + "name": "TDigestExecutionHint", + "namespace": "_types.aggregations" + } + } } ], - "specLocation": "_types/aggregations/metric.ts#L232-L237" + "specLocation": "_types/aggregations/metric.ts#L244-L255" + }, + { + "kind": "enum", + "members": [ + { + "name": "default" + }, + { + "name": "high_accuracy" + } + ], + "name": { + "name": "TDigestExecutionHint", + "namespace": "_types.aggregations" + }, + "specLocation": "_types/aggregations/metric.ts#L257-L260" }, { "kind": "interface", @@ -67398,7 +67453,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L303-L317" + "specLocation": "_types/aggregations/metric.ts#L326-L340" }, { "kind": "enum", @@ -67420,7 +67475,7 @@ "name": "TTestType", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/metric.ts#L331-L344" + "specLocation": "_types/aggregations/metric.ts#L354-L367" }, { "kind": "interface", @@ -67918,7 +67973,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L319-L329" + "specLocation": "_types/aggregations/metric.ts#L342-L352" }, { "kind": "interface", @@ -68256,7 +68311,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L346-L406" + "specLocation": "_types/aggregations/metric.ts#L369-L429" }, { "kind": "interface", @@ -68427,7 +68482,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L408-L425" + "specLocation": "_types/aggregations/metric.ts#L431-L448" }, { "kind": "interface", @@ -68449,7 +68504,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L427-L432" + "specLocation": "_types/aggregations/metric.ts#L450-L455" }, { "kind": "interface", @@ -68580,7 +68635,7 @@ "namespace": "_types.aggregations" }, "properties": [], - "specLocation": "_types/aggregations/metric.ts#L434-L434" + "specLocation": "_types/aggregations/metric.ts#L457-L457" }, { "kind": "enum", @@ -68620,7 +68675,7 @@ "name": "ValueType", "namespace": "_types.aggregations" }, - "specLocation": "_types/aggregations/metric.ts#L436-L447" + "specLocation": "_types/aggregations/metric.ts#L459-L470" }, { "kind": "interface", @@ -68865,7 +68920,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L449-L463" + "specLocation": "_types/aggregations/metric.ts#L472-L486" }, { "kind": "interface", @@ -68910,7 +68965,7 @@ } } ], - "specLocation": "_types/aggregations/metric.ts#L465-L475" + "specLocation": "_types/aggregations/metric.ts#L488-L498" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index a9aa88d4c0..e46061c88d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -3257,6 +3257,7 @@ export interface AggregationsBoxPlotAggregate extends AggregationsAggregateBase export interface AggregationsBoxplotAggregation extends AggregationsMetricAggregationBase { compression?: double + execution_hint?: AggregationsTDigestExecutionHint } export interface AggregationsBucketAggregationBase { @@ -3916,6 +3917,7 @@ export interface AggregationsMedianAbsoluteDeviationAggregate extends Aggregatio export interface AggregationsMedianAbsoluteDeviationAggregation extends AggregationsFormatMetricAggregationBase { compression?: double + execution_hint?: AggregationsTDigestExecutionHint } export interface AggregationsMetricAggregationBase { @@ -4327,8 +4329,11 @@ export interface AggregationsSumBucketAggregation extends AggregationsPipelineAg export interface AggregationsTDigest { compression?: integer + execution_hint?: AggregationsTDigestExecutionHint } +export type AggregationsTDigestExecutionHint = 'default' | 'high_accuracy' + export interface AggregationsTDigestPercentileRanksAggregate extends AggregationsPercentilesAggregateBase { } diff --git a/specification/_types/aggregations/metric.ts b/specification/_types/aggregations/metric.ts index ea40cf5aee..28abf6486a 100644 --- a/specification/_types/aggregations/metric.ts +++ b/specification/_types/aggregations/metric.ts @@ -59,6 +59,12 @@ export class BoxplotAggregation extends MetricAggregationBase { * Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. */ compression?: double + /** + * The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases). + * To use an implementation optimized for accuracy, set this parameter to high_accuracy instead. + * @server_default default + */ + execution_hint?: TDigestExecutionHint } export enum CardinalityExecutionMode { @@ -173,6 +179,12 @@ export class MedianAbsoluteDeviationAggregation extends FormatMetricAggregationB * @server_default 1000 */ compression?: double + /** + * The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases). + * To use an implementation optimized for accuracy, set this parameter to high_accuracy instead. + * @server_default default + */ + execution_hint?: TDigestExecutionHint } export class MinAggregation extends FormatMetricAggregationBase {} @@ -234,6 +246,17 @@ export class TDigest { * Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error. */ compression?: integer + /** + * The default implementation of TDigest is optimized for performance, scaling to millions or even billions of sample values while maintaining acceptable accuracy levels (close to 1% relative error for millions of samples in some cases). + * To use an implementation optimized for accuracy, set this parameter to high_accuracy instead. + * @server_default default + */ + execution_hint?: TDigestExecutionHint +} + +export enum TDigestExecutionHint { + default, + high_accuracy } export class RateAggregation extends FormatMetricAggregationBase {