diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 725c365a32..f0c0e95ea9 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -82506,6 +82506,9 @@ "description": "If `true`, the data stream allows custom routing on write request.", "type": "boolean" }, + "failure_store": { + "$ref": "#/components/schemas/indices._types:FailureStore" + }, "generation": { "description": "Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.", "type": "number" @@ -82541,6 +82544,10 @@ "description": "If `true`, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.", "type": "boolean" }, + "rollover_on_write": { + "description": "If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.", + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/_types:HealthStatus" }, @@ -82563,17 +82570,32 @@ "prefer_ilm", "indices", "name", + "rollover_on_write", "status", "template", "timestamp_field" ] }, - "indices._types:ManagedBy": { - "type": "string", - "enum": [ - "Index Lifecycle Management", - "Data stream lifecycle", - "Unmanaged" + "indices._types:FailureStore": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "indices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types:DataStreamIndex" + } + }, + "rollover_on_write": { + "type": "boolean" + } + }, + "required": [ + "enabled", + "indices", + "rollover_on_write" ] }, "indices._types:DataStreamIndex": { @@ -82598,9 +82620,15 @@ }, "required": [ "index_name", - "index_uuid", - "managed_by", - "prefer_ilm" + "index_uuid" + ] + }, + "indices._types:ManagedBy": { + "type": "string", + "enum": [ + "Index Lifecycle Management", + "Data stream lifecycle", + "Unmanaged" ] }, "indices._types:DataStreamTimestampField": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 2f26e2d4ac..f60fc04203 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -53221,6 +53221,9 @@ "description": "If `true`, the data stream allows custom routing on write request.", "type": "boolean" }, + "failure_store": { + "$ref": "#/components/schemas/indices._types:FailureStore" + }, "generation": { "description": "Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.", "type": "number" @@ -53256,6 +53259,10 @@ "description": "If `true`, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.", "type": "boolean" }, + "rollover_on_write": { + "description": "If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.", + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/_types:HealthStatus" }, @@ -53278,17 +53285,32 @@ "prefer_ilm", "indices", "name", + "rollover_on_write", "status", "template", "timestamp_field" ] }, - "indices._types:ManagedBy": { - "type": "string", - "enum": [ - "Index Lifecycle Management", - "Data stream lifecycle", - "Unmanaged" + "indices._types:FailureStore": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "indices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types:DataStreamIndex" + } + }, + "rollover_on_write": { + "type": "boolean" + } + }, + "required": [ + "enabled", + "indices", + "rollover_on_write" ] }, "indices._types:DataStreamIndex": { @@ -53313,9 +53335,15 @@ }, "required": [ "index_name", - "index_uuid", - "managed_by", - "prefer_ilm" + "index_uuid" + ] + }, + "indices._types:ManagedBy": { + "type": "string", + "enum": [ + "Index Lifecycle Management", + "Data stream lifecycle", + "Unmanaged" ] }, "indices._types:DataStreamTimestampField": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index d225f34962..8b54888223 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -114807,6 +114807,18 @@ } } }, + { + "description": "Information about failure store backing indices", + "name": "failure_store", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FailureStore", + "namespace": "indices._types" + } + } + }, { "description": "Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.", "name": "generation", @@ -114927,6 +114939,18 @@ } } }, + { + "description": "If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.", + "name": "rollover_on_write", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "Health status of the data stream.\nThis health status is based on the state of the primary and replica shards of the stream’s backing indices.", "name": "status", @@ -114982,7 +115006,53 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L39-L112" + "specLocation": "indices/_types/DataStream.ts#L45-L127" + }, + { + "kind": "interface", + "name": { + "name": "FailureStore", + "namespace": "indices._types" + }, + "properties": [ + { + "name": "enabled", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "indices", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "DataStreamIndex", + "namespace": "indices._types" + } + } + } + }, + { + "name": "rollover_on_write", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "indices/_types/DataStream.ts#L39-L43" }, { "kind": "interface", @@ -115030,7 +115100,7 @@ { "description": "Name of the lifecycle system that's currently managing this backing index.", "name": "managed_by", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -115042,7 +115112,7 @@ { "description": "Indicates if ILM should take precedence over DSL in case both are configured to manage this index.", "name": "prefer_ilm", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -115052,7 +115122,7 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L121-L142" + "specLocation": "indices/_types/DataStream.ts#L136-L157" }, { "kind": "interface", @@ -115074,7 +115144,7 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L114-L119" + "specLocation": "indices/_types/DataStream.ts#L129-L134" }, { "kind": "interface", @@ -115530,7 +115600,7 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L144-L146" + "specLocation": "indices/_types/DataStream.ts#L159-L161" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 473f7cd921..14a5b32613 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -118048,6 +118048,18 @@ } } }, + { + "description": "Information about failure store backing indices", + "name": "failure_store", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FailureStore", + "namespace": "indices._types" + } + } + }, { "description": "Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.", "name": "generation", @@ -118168,6 +118180,18 @@ } } }, + { + "description": "If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.", + "name": "rollover_on_write", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "Health status of the data stream.\nThis health status is based on the state of the primary and replica shards of the stream’s backing indices.", "name": "status", @@ -118223,7 +118247,7 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L39-L112" + "specLocation": "indices/_types/DataStream.ts#L45-L127" }, { "kind": "interface", @@ -118271,7 +118295,7 @@ { "description": "Name of the lifecycle system that's currently managing this backing index.", "name": "managed_by", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -118283,7 +118307,7 @@ { "description": "Indicates if ILM should take precedence over DSL in case both are configured to manage this index.", "name": "prefer_ilm", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -118293,7 +118317,7 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L121-L142" + "specLocation": "indices/_types/DataStream.ts#L136-L157" }, { "description": "Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration.", @@ -118540,7 +118564,7 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L114-L119" + "specLocation": "indices/_types/DataStream.ts#L129-L134" }, { "kind": "interface", @@ -118561,7 +118585,7 @@ } } ], - "specLocation": "indices/_types/DataStream.ts#L144-L146" + "specLocation": "indices/_types/DataStream.ts#L159-L161" }, { "kind": "interface", @@ -118619,6 +118643,52 @@ ], "specLocation": "indices/_types/DownsamplingRound.ts#L23-L32" }, + { + "kind": "interface", + "name": { + "name": "FailureStore", + "namespace": "indices._types" + }, + "properties": [ + { + "name": "enabled", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "indices", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "DataStreamIndex", + "namespace": "indices._types" + } + } + } + }, + { + "name": "rollover_on_write", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "indices/_types/DataStream.ts#L39-L43" + }, { "kind": "interface", "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 383adae0d2..d93fa3c4a8 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10424,6 +10424,7 @@ export interface IndicesCacheQueries { export interface IndicesDataStream { _meta?: Metadata allow_custom_routing?: boolean + failure_store?: IndicesFailureStore generation: integer hidden: boolean ilm_policy?: Name @@ -10433,6 +10434,7 @@ export interface IndicesDataStream { lifecycle?: IndicesDataStreamLifecycleWithRollover name: DataStreamName replicated?: boolean + rollover_on_write: boolean status: HealthStatus system?: boolean template: Name @@ -10443,8 +10445,8 @@ export interface IndicesDataStreamIndex { index_name: IndexName index_uuid: Uuid ilm_policy?: Name - managed_by: IndicesManagedBy - prefer_ilm: boolean + managed_by?: IndicesManagedBy + prefer_ilm?: boolean } export interface IndicesDataStreamLifecycle { @@ -10492,6 +10494,12 @@ export interface IndicesDownsamplingRound { config: IndicesDownsampleConfig } +export interface IndicesFailureStore { + enabled: boolean + indices: IndicesDataStreamIndex[] + rollover_on_write: boolean +} + export interface IndicesFielddataFrequencyFilter { max: double min: double diff --git a/specification/indices/_types/DataStream.ts b/specification/indices/_types/DataStream.ts index d7b1e1ba60..a9ac73b964 100644 --- a/specification/indices/_types/DataStream.ts +++ b/specification/indices/_types/DataStream.ts @@ -36,6 +36,12 @@ enum ManagedBy { unmanaged = 'Unmanaged' } +export class FailureStore { + enabled: boolean + indices: DataStreamIndex[] + rollover_on_write: boolean +} + export class DataStream { /** * Custom metadata for the stream, copied from the `_meta` object of the stream’s matching index template. @@ -47,6 +53,11 @@ export class DataStream { * If `true`, the data stream allows custom routing on write request. */ allow_custom_routing?: boolean + /** + * Information about failure store backing indices + * + */ + failure_store?: FailureStore /** * Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1. */ @@ -89,6 +100,10 @@ export class DataStream { * If `true`, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings. */ replicated?: boolean + /** + * If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too. + */ + rollover_on_write: boolean /** * Health status of the data stream. * This health status is based on the state of the primary and replica shards of the stream’s backing indices. @@ -134,11 +149,11 @@ export class DataStreamIndex { /** * Name of the lifecycle system that's currently managing this backing index. */ - managed_by: ManagedBy + managed_by?: ManagedBy /** * Indicates if ILM should take precedence over DSL in case both are configured to manage this index. */ - prefer_ilm: boolean + prefer_ilm?: boolean } export class DataStreamVisibility {