From 5ed2bac560023fe494ef8d22d0fa77e634e6a23d Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Thu, 3 Aug 2023 12:41:10 +0000 Subject: [PATCH] Update specification output --- output/schema/schema.json | 106 +++++++++++++++++++++++++++++-------- output/typescript/types.ts | 14 ++++- 2 files changed, 97 insertions(+), 23 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 043dfe2713..5caaca6284 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -108511,7 +108511,7 @@ "type": { "kind": "instance_of", "type": { - "name": "SlowlogSettings", + "name": "IndexingSlowlogSettings", "namespace": "indices._types" } } @@ -109176,7 +109176,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L540-L542" + "specLocation": "indices/_types/IndexSettings.ts#L534-L536" }, { "kind": "interface", @@ -109198,7 +109198,85 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L544-L551" + "specLocation": "indices/_types/IndexSettings.ts#L538-L545" + }, + { + "kind": "interface", + "name": { + "name": "IndexingSlowlogSettings", + "namespace": "indices._types" + }, + "properties": [ + { + "name": "level", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "name": "source", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "name": "reformat", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "name": "threshold", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "IndexingSlowlogTresholds", + "namespace": "indices._types" + } + } + } + ], + "specLocation": "indices/_types/IndexSettings.ts#L547-L552" + }, + { + "kind": "interface", + "name": { + "name": "IndexingSlowlogTresholds", + "namespace": "indices._types" + }, + "properties": [ + { + "description": "The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.\nLog and the thresholds are configured in the same way as the search slowlog.", + "docId": "index-modules-slowlog-slowlog", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/index-modules-slowlog.html#index-slow-log", + "name": "index", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "SlowlogTresholdLevels", + "namespace": "indices._types" + } + } + } + ], + "specLocation": "indices/_types/IndexSettings.ts#L554-L561" }, { "description": "Mapping Limit Settings", @@ -110248,7 +110326,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L490-L495" + "specLocation": "indices/_types/IndexSettings.ts#L484-L489" }, { "kind": "interface", @@ -110278,23 +110356,9 @@ "namespace": "indices._types" } } - }, - { - "description": "The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.\nLog and the thresholds are configured in the same way as the search slowlog.", - "docId": "index-modules-slowlog-slowlog", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/index-modules-slowlog.html#index-slow-log", - "name": "index", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "SlowlogTresholdLevels", - "namespace": "indices._types" - } - } } ], - "specLocation": "indices/_types/IndexSettings.ts#L479-L488" + "specLocation": "indices/_types/IndexSettings.ts#L479-L482" }, { "kind": "interface", @@ -110362,7 +110426,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L497-L506" + "specLocation": "indices/_types/IndexSettings.ts#L491-L500" }, { "isOpen": true, @@ -110392,7 +110456,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L508-L538" + "specLocation": "indices/_types/IndexSettings.ts#L502-L532" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 70506d80f2..9b43ef5dd9 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9743,7 +9743,7 @@ export interface IndicesIndexSettingsKeys { queries?: IndicesQueries similarity?: IndicesSettingsSimilarity mapping?: IndicesMappingLimitSettings - 'indexing.slowlog'?: IndicesSlowlogSettings + 'indexing.slowlog'?: IndicesIndexingSlowlogSettings indexing_pressure?: IndicesIndexingPressure store?: IndicesStorage } @@ -9821,6 +9821,17 @@ export interface IndicesIndexingPressureMemory { limit?: integer } +export interface IndicesIndexingSlowlogSettings { + level?: string + source?: integer + reformat?: boolean + threshold?: IndicesIndexingSlowlogTresholds +} + +export interface IndicesIndexingSlowlogTresholds { + index?: IndicesSlowlogTresholdLevels +} + export interface IndicesMappingLimitSettings { coerce?: boolean total_fields?: IndicesMappingLimitSettingsTotalFields @@ -9974,7 +9985,6 @@ export interface IndicesSlowlogTresholdLevels { export interface IndicesSlowlogTresholds { query?: IndicesSlowlogTresholdLevels fetch?: IndicesSlowlogTresholdLevels - index?: IndicesSlowlogTresholdLevels } export interface IndicesSoftDeletes {