From efaf732a8baef153c7728cf243ae51f473f9eed4 Mon Sep 17 00:00:00 2001 From: kosabogi Date: Mon, 8 Sep 2025 11:41:40 +0200 Subject: [PATCH 1/3] Adds frequency parameter description to the Datafeed.ts file --- specification/ml/_types/Datafeed.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/ml/_types/Datafeed.ts b/specification/ml/_types/Datafeed.ts index dac7a558d1..bed5f5ea35 100644 --- a/specification/ml/_types/Datafeed.ts +++ b/specification/ml/_types/Datafeed.ts @@ -43,6 +43,9 @@ export class Datafeed { authorization?: DatafeedAuthorization chunking_config?: ChunkingConfig datafeed_id: Id + /** + * The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: `150s`. When `frequency` is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation. + */ frequency?: Duration indices: string[] indexes?: string[] From 90d0975df5bb00763f600b53cea22ec673e41655 Mon Sep 17 00:00:00 2001 From: kosabogi Date: Mon, 8 Sep 2025 11:52:55 +0200 Subject: [PATCH 2/3] Adds missing description --- specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts b/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts index aa103b2085..2ef25d424e 100644 --- a/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts +++ b/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts @@ -35,6 +35,9 @@ export class Response { chunking_config: ChunkingConfig delayed_data_check_config?: DelayedDataCheckConfig datafeed_id: Id + /** + * The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: `150s`. When `frequency` is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation. + */ frequency?: Duration indices: string[] indices_options?: IndicesOptions From 2767a1fe5c405334b39347757ce7687651c26e55 Mon Sep 17 00:00:00 2001 From: kosabogi Date: Mon, 8 Sep 2025 12:01:18 +0200 Subject: [PATCH 3/3] Fixes code style errpr --- specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts b/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts index 2ef25d424e..8118415acb 100644 --- a/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts +++ b/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts @@ -36,8 +36,8 @@ export class Response { delayed_data_check_config?: DelayedDataCheckConfig datafeed_id: Id /** - * The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: `150s`. When `frequency` is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation. - */ + * The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: `150s`. When `frequency` is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation. + */ frequency?: Duration indices: string[] indices_options?: IndicesOptions