From 042662ef8a1f541d9c205157e055c890dfd9ac6a Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Tue, 28 Dec 2021 16:41:47 -0600 Subject: [PATCH] Add IndexSettings.time_series field --- output/schema/schema.json | 72 +++++++++++++++---- output/typescript/types.ts | 6 ++ specification/indices/_types/IndexSettings.ts | 9 +++ 3 files changed, 75 insertions(+), 12 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 77d7b7b6ef..e5c2576fe0 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -1,6 +1,6 @@ { "_info": { - "hash": "6cd3ea7", + "hash": "ed1cc494", "license": { "name": "Apache 2.0", "url": "https://github.com/elastic/elasticsearch-specification/blob/master/LICENSE" @@ -97243,9 +97243,9 @@ "namespace": "indices._types" }, "specLocation": { - "endLine": 299, + "endLine": 303, "path": "indices/_types/IndexSettings.ts", - "startLine": 295 + "startLine": 299 } }, { @@ -97696,9 +97696,9 @@ } ], "specLocation": { - "endLine": 293, + "endLine": 297, "path": "indices/_types/IndexSettings.ts", - "startLine": 287 + "startLine": 291 } }, { @@ -98649,10 +98649,22 @@ "namespace": "indices._types" } } + }, + { + "name": "time_series", + "required": false, + "stability": "experimental", + "type": { + "kind": "instance_of", + "type": { + "name": "IndexSettingsTimeSeries", + "namespace": "indices._types" + } + } } ], "specLocation": { - "endLine": 285, + "endLine": 289, "path": "indices/_types/IndexSettings.ts", "startLine": 37 } @@ -98776,9 +98788,9 @@ } ], "specLocation": { - "endLine": 316, + "endLine": 320, "path": "indices/_types/IndexSettings.ts", - "startLine": 310 + "startLine": 314 } }, { @@ -98801,9 +98813,45 @@ } ], "specLocation": { - "endLine": 308, + "endLine": 312, "path": "indices/_types/IndexSettings.ts", - "startLine": 306 + "startLine": 310 + } + }, + { + "kind": "interface", + "name": { + "name": "IndexSettingsTimeSeries", + "namespace": "indices._types" + }, + "properties": [ + { + "name": "end_time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateString", + "namespace": "_types" + } + } + }, + { + "name": "start_time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DateString", + "namespace": "_types" + } + } + } + ], + "specLocation": { + "endLine": 325, + "path": "indices/_types/IndexSettings.ts", + "startLine": 322 } }, { @@ -98918,9 +98966,9 @@ } ], "specLocation": { - "endLine": 304, + "endLine": 308, "path": "indices/_types/IndexSettings.ts", - "startLine": 301 + "startLine": 305 } }, { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index ffa4ea178a..6ddcd20ae4 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9144,6 +9144,7 @@ export interface IndicesIndexSettings { analysis?: IndicesIndexSettingsAnalysis 'index.analysis'?: IndicesIndexSettingsAnalysis settings?: IndicesIndexSettings + time_series?: IndicesIndexSettingsTimeSeries } export interface IndicesIndexSettingsAnalysis { @@ -9158,6 +9159,11 @@ export interface IndicesIndexSettingsLifecycle { name: Name } +export interface IndicesIndexSettingsTimeSeries { + end_time?: DateString + start_time?: DateString +} + export interface IndicesIndexState { aliases?: Record mappings?: MappingTypeMapping diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 924774f649..81f9c2db19 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -282,6 +282,10 @@ export class IndexSettings { */ analysis?: IndexSettingsAnalysis settings?: IndexSettings + /** + * @stability experimental + */ + time_series?: IndexSettingsTimeSeries } export class IndexSettingBlocks { @@ -314,3 +318,8 @@ export class IndexSettingsAnalysis { normalizer?: Dictionary tokenizer?: Dictionary } + +export class IndexSettingsTimeSeries { + end_time?: DateString + start_time?: DateString +}