From 599c02715d6e776496acf340e7010d8db0ccb026 Mon Sep 17 00:00:00 2001 From: Wenkai Li Date: Mon, 10 Mar 2025 15:38:02 +0100 Subject: [PATCH] update queue.max_bytes field in logstash pipeline settings spec --- output/openapi/elasticsearch-openapi.json | 9 ++------- .../elasticsearch-serverless-openapi.json | 9 ++------- output/schema/schema-serverless.json | 18 +++--------------- output/schema/schema.json | 18 +++--------------- output/typescript/types.ts | 3 +-- specification/logstash/_types/Pipeline.ts | 6 +----- 6 files changed, 12 insertions(+), 51 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 43e29a5596..502d2a463c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -82343,12 +82343,8 @@ "description": "The internal queuing model to use for event buffering.", "type": "string" }, - "queue.max_bytes.number": { + "queue.max_bytes": { "description": "The total capacity of the queue (`queue.type: persisted`) in number of bytes.", - "type": "number" - }, - "queue.max_bytes.units": { - "description": "The total capacity of the queue (`queue.type: persisted`) in terms of units of bytes.", "type": "string" }, "queue.checkpoint.writes": { @@ -82361,8 +82357,7 @@ "pipeline.batch.size", "pipeline.batch.delay", "queue.type", - "queue.max_bytes.number", - "queue.max_bytes.units", + "queue.max_bytes", "queue.checkpoint.writes" ] }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 9b1facb920..191fcef232 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -53350,12 +53350,8 @@ "description": "The internal queuing model to use for event buffering.", "type": "string" }, - "queue.max_bytes.number": { + "queue.max_bytes": { "description": "The total capacity of the queue (`queue.type: persisted`) in number of bytes.", - "type": "number" - }, - "queue.max_bytes.units": { - "description": "The total capacity of the queue (`queue.type: persisted`) in terms of units of bytes.", "type": "string" }, "queue.checkpoint.writes": { @@ -53368,8 +53364,7 @@ "pipeline.batch.size", "pipeline.batch.delay", "queue.type", - "queue.max_bytes.number", - "queue.max_bytes.units", + "queue.max_bytes", "queue.checkpoint.writes" ] }, diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 6f93bdfce9..024dedb774 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -131945,7 +131945,7 @@ } } ], - "specLocation": "logstash/_types/Pipeline.ts#L60-L91" + "specLocation": "logstash/_types/Pipeline.ts#L56-L87" }, { "kind": "interface", @@ -132040,19 +132040,7 @@ }, { "description": "The total capacity of the queue (`queue.type: persisted`) in number of bytes.", - "name": "queue.max_bytes.number", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "description": "The total capacity of the queue (`queue.type: persisted`) in terms of units of bytes.", - "name": "queue.max_bytes.units", + "name": "queue.max_bytes", "required": true, "type": { "kind": "instance_of", @@ -132075,7 +132063,7 @@ } } ], - "specLocation": "logstash/_types/Pipeline.ts#L28-L59" + "specLocation": "logstash/_types/Pipeline.ts#L28-L55" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 059869f368..c7c89e2f7f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -164223,7 +164223,7 @@ } } ], - "specLocation": "logstash/_types/Pipeline.ts#L60-L91" + "specLocation": "logstash/_types/Pipeline.ts#L56-L87" }, { "kind": "interface", @@ -164318,19 +164318,7 @@ }, { "description": "The total capacity of the queue (`queue.type: persisted`) in number of bytes.", - "name": "queue.max_bytes.number", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "description": "The total capacity of the queue (`queue.type: persisted`) in terms of units of bytes.", - "name": "queue.max_bytes.units", + "name": "queue.max_bytes", "required": true, "type": { "kind": "instance_of", @@ -164353,7 +164341,7 @@ } } ], - "specLocation": "logstash/_types/Pipeline.ts#L28-L59" + "specLocation": "logstash/_types/Pipeline.ts#L28-L55" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 916898de8e..3bba17f24c 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -14618,8 +14618,7 @@ export interface LogstashPipelineSettings { 'pipeline.batch.size': integer 'pipeline.batch.delay': integer 'queue.type': string - 'queue.max_bytes.number': integer - 'queue.max_bytes.units': string + 'queue.max_bytes': string 'queue.checkpoint.writes': integer } diff --git a/specification/logstash/_types/Pipeline.ts b/specification/logstash/_types/Pipeline.ts index 76ff608407..547299ba08 100644 --- a/specification/logstash/_types/Pipeline.ts +++ b/specification/logstash/_types/Pipeline.ts @@ -47,11 +47,7 @@ export class PipelineSettings { /** * The total capacity of the queue (`queue.type: persisted`) in number of bytes. */ - 'queue.max_bytes.number': integer - /** - * The total capacity of the queue (`queue.type: persisted`) in terms of units of bytes. - */ - 'queue.max_bytes.units': string + 'queue.max_bytes': string /** * The maximum number of written events before forcing a checkpoint when persistent queues are enabled (`queue.type: persisted`). */