diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 36528ee2ed..da61c6278e 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -59571,6 +59571,9 @@ }, "unit": { "$ref": "#/components/schemas/_types:DistanceUnit" + }, + "nested": { + "$ref": "#/components/schemas/_types:NestedSortValue" } } }, @@ -59598,6 +59601,26 @@ "mm" ] }, + "_types:NestedSortValue": { + "type": "object", + "properties": { + "filter": { + "$ref": "#/components/schemas/_types.query_dsl:QueryContainer" + }, + "max_children": { + "type": "number" + }, + "nested": { + "$ref": "#/components/schemas/_types:NestedSortValue" + }, + "path": { + "$ref": "#/components/schemas/_types:Field" + } + }, + "required": [ + "path" + ] + }, "_types:ScriptSort": { "type": "object", "properties": { @@ -59629,26 +59652,6 @@ "version" ] }, - "_types:NestedSortValue": { - "type": "object", - "properties": { - "filter": { - "$ref": "#/components/schemas/_types.query_dsl:QueryContainer" - }, - "max_children": { - "type": "number" - }, - "nested": { - "$ref": "#/components/schemas/_types:NestedSortValue" - }, - "path": { - "$ref": "#/components/schemas/_types:Field" - } - }, - "required": [ - "path" - ] - }, "_global.search._types:SourceConfig": { "description": "Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.", "oneOf": [ @@ -65604,6 +65607,42 @@ "description": "Number of primary and replica shards assigned to the node.", "type": "string" }, + "shards.undesired": { + "description": "Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used", + "oneOf": [ + { + "type": "string" + }, + { + "nullable": true, + "type": "string" + } + ] + }, + "write_load.forecast": { + "description": "Sum of index write load forecasts", + "oneOf": [ + { + "type": "number" + }, + { + "nullable": true, + "type": "string" + } + ] + }, + "disk.indices.forecast": { + "description": "Sum of shard size forecasts", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:ByteSize" + }, + { + "nullable": true, + "type": "string" + } + ] + }, "disk.indices": { "description": "Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards.\nIMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.", "oneOf": [ @@ -65691,8 +65730,35 @@ "node": { "description": "Name for the node. Set using the `node.name` setting.", "type": "string" + }, + "node.role": { + "description": "Node roles", + "oneOf": [ + { + "type": "string" + }, + { + "nullable": true, + "type": "string" + } + ] } - } + }, + "required": [ + "shards", + "shards.undesired", + "write_load.forecast", + "disk.indices.forecast", + "disk.indices", + "disk.used", + "disk.avail", + "disk.total", + "disk.percent", + "host", + "ip", + "node", + "node.role" + ] }, "_types:ByteSize": { "externalDocs": { @@ -71538,8 +71604,7 @@ } }, "required": [ - "type", - "language" + "type" ] } ] @@ -80390,6 +80455,9 @@ "creating_primaries": { "type": "number" }, + "creating_replicas": { + "type": "number" + }, "initializing_primaries": { "type": "number" }, @@ -80417,6 +80485,7 @@ }, "required": [ "creating_primaries", + "creating_replicas", "initializing_primaries", "initializing_replicas", "restarting_primaries", @@ -80524,11 +80593,15 @@ }, "policies": { "type": "number" + }, + "stagnating_indices": { + "type": "number" } }, "required": [ "ilm_status", - "policies" + "policies", + "stagnating_indices" ] }, "_types:LifecycleOperationMode": { @@ -80569,8 +80642,7 @@ }, "required": [ "slm_status", - "policies", - "unhealthy_policies" + "policies" ] }, "_global.health_report:SlmIndicatorUnhealthyPolicies": { @@ -98512,10 +98584,7 @@ }, "required": [ "docs_indexed", - "docs_processed", - "docs_remaining", - "percent_complete", - "total_docs" + "docs_processed" ] }, "transform.get_transform_stats:TransformStatsHealth": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index a13f7881b5..0e0aa1b305 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -36509,6 +36509,9 @@ }, "unit": { "$ref": "#/components/schemas/_types:DistanceUnit" + }, + "nested": { + "$ref": "#/components/schemas/_types:NestedSortValue" } } }, @@ -36536,6 +36539,26 @@ "mm" ] }, + "_types:NestedSortValue": { + "type": "object", + "properties": { + "filter": { + "$ref": "#/components/schemas/_types.query_dsl:QueryContainer" + }, + "max_children": { + "type": "number" + }, + "nested": { + "$ref": "#/components/schemas/_types:NestedSortValue" + }, + "path": { + "$ref": "#/components/schemas/_types:Field" + } + }, + "required": [ + "path" + ] + }, "_types:ScriptSort": { "type": "object", "properties": { @@ -36567,26 +36590,6 @@ "version" ] }, - "_types:NestedSortValue": { - "type": "object", - "properties": { - "filter": { - "$ref": "#/components/schemas/_types.query_dsl:QueryContainer" - }, - "max_children": { - "type": "number" - }, - "nested": { - "$ref": "#/components/schemas/_types:NestedSortValue" - }, - "path": { - "$ref": "#/components/schemas/_types:Field" - } - }, - "required": [ - "path" - ] - }, "_global.search._types:SourceConfig": { "description": "Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.", "oneOf": [ @@ -46160,8 +46163,7 @@ } }, "required": [ - "type", - "language" + "type" ] } ] @@ -61882,10 +61884,7 @@ }, "required": [ "docs_indexed", - "docs_processed", - "docs_remaining", - "percent_complete", - "total_docs" + "docs_processed" ] }, "transform.get_transform_stats:TransformStatsHealth": { diff --git a/output/schema/dangling-types/dangling.csv b/output/schema/dangling-types/dangling.csv new file mode 100644 index 0000000000..e69de29bb2 diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 6a0af2891a..83ce997d41 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -53237,7 +53237,7 @@ "name": "Sort", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L104-L104", + "specLocation": "_types/sort.ts#L105-L105", "type": { "items": [ { @@ -53271,7 +53271,7 @@ "name": "SortCombinations", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L98-L102", + "specLocation": "_types/sort.ts#L99-L103", "type": { "items": [ { @@ -53377,7 +53377,7 @@ } } ], - "specLocation": "_types/sort.ts#L86-L96", + "specLocation": "_types/sort.ts#L87-L97", "variants": { "kind": "container" } @@ -53534,7 +53534,7 @@ "name": "SortMode", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L108-L117" + "specLocation": "_types/sort.ts#L109-L118" }, { "kind": "interface", @@ -53606,7 +53606,7 @@ "name": "SortOrder", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L119-L128" + "specLocation": "_types/sort.ts#L120-L129" }, { "kind": "enum", @@ -53906,9 +53906,20 @@ "namespace": "_types" } } + }, + { + "name": "nested", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "NestedSortValue", + "namespace": "_types" + } + } } ], - "specLocation": "_types/sort.ts#L59-L70" + "specLocation": "_types/sort.ts#L59-L71" }, { "kind": "enum", @@ -54019,7 +54030,7 @@ } } ], - "specLocation": "_types/sort.ts#L72-L78" + "specLocation": "_types/sort.ts#L73-L79" }, { "kind": "enum", @@ -54038,7 +54049,7 @@ "name": "ScriptSortType", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L80-L84" + "specLocation": "_types/sort.ts#L81-L85" }, { "codegenNames": [ @@ -66989,7 +67000,7 @@ "name": "SortResults", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L106-L106", + "specLocation": "_types/sort.ts#L107-L107", "type": { "kind": "array_of", "value": { @@ -80069,7 +80080,7 @@ }, { "name": "language", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -136099,7 +136110,7 @@ }, { "name": "docs_remaining", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -136110,7 +136121,7 @@ }, { "name": "percent_complete", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -136121,7 +136132,7 @@ }, { "name": "total_docs", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/schema/schema.json b/output/schema/schema.json index f3f317ffb7..bab7203707 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -24977,7 +24977,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L121-L125" + "specLocation": "_global/health_report/types.ts#L122-L126" }, { "kind": "interface", @@ -25042,7 +25042,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L126-L132" + "specLocation": "_global/health_report/types.ts#L127-L133" }, { "description": "ILM", @@ -25070,7 +25070,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L145-L149" + "specLocation": "_global/health_report/types.ts#L146-L150" }, { "kind": "interface", @@ -25100,9 +25100,20 @@ "namespace": "_types" } } + }, + { + "name": "stagnating_indices", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } } ], - "specLocation": "_global/health_report/types.ts#L150-L153" + "specLocation": "_global/health_report/types.ts#L151-L155" }, { "kind": "interface", @@ -25537,7 +25548,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L134-L138" + "specLocation": "_global/health_report/types.ts#L135-L139" }, { "kind": "interface", @@ -25583,7 +25594,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L139-L143" + "specLocation": "_global/health_report/types.ts#L140-L144" }, { "attachedBehaviors": [ @@ -25767,6 +25778,17 @@ } } }, + { + "name": "creating_replicas", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, { "name": "initializing_primaries", "required": true, @@ -25856,7 +25878,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L109-L119" + "specLocation": "_global/health_report/types.ts#L109-L120" }, { "description": "SHARDS_CAPACITY", @@ -25884,7 +25906,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L171-L175" + "specLocation": "_global/health_report/types.ts#L173-L177" }, { "kind": "interface", @@ -25916,7 +25938,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L177-L180" + "specLocation": "_global/health_report/types.ts#L179-L182" }, { "kind": "interface", @@ -25948,7 +25970,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L182-L185" + "specLocation": "_global/health_report/types.ts#L184-L187" }, { "description": "SLM", @@ -25976,7 +25998,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L155-L159" + "specLocation": "_global/health_report/types.ts#L157-L161" }, { "kind": "interface", @@ -26009,7 +26031,7 @@ }, { "name": "unhealthy_policies", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -26019,7 +26041,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L160-L164" + "specLocation": "_global/health_report/types.ts#L162-L166" }, { "kind": "interface", @@ -26062,7 +26084,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L166-L169" + "specLocation": "_global/health_report/types.ts#L168-L171" }, { "attachedBehaviors": [ @@ -43074,9 +43096,20 @@ "namespace": "_types" } } + }, + { + "name": "nested", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "NestedSortValue", + "namespace": "_types" + } + } } ], - "specLocation": "_types/sort.ts#L59-L70" + "specLocation": "_types/sort.ts#L59-L71" }, { "kind": "enum", @@ -46757,7 +46790,7 @@ } } ], - "specLocation": "_types/sort.ts#L72-L78" + "specLocation": "_types/sort.ts#L73-L79" }, { "kind": "enum", @@ -46776,7 +46809,7 @@ "name": "ScriptSortType", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L80-L84" + "specLocation": "_types/sort.ts#L81-L85" }, { "kind": "interface", @@ -47778,7 +47811,7 @@ "name": "Sort", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L104-L104", + "specLocation": "_types/sort.ts#L105-L105", "type": { "items": [ { @@ -47812,7 +47845,7 @@ "name": "SortCombinations", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L98-L102", + "specLocation": "_types/sort.ts#L99-L103", "type": { "items": [ { @@ -47856,7 +47889,7 @@ "name": "SortMode", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L108-L117" + "specLocation": "_types/sort.ts#L109-L118" }, { "attachedBehaviors": [ @@ -47943,7 +47976,7 @@ } } ], - "specLocation": "_types/sort.ts#L86-L96", + "specLocation": "_types/sort.ts#L87-L97", "variants": { "kind": "container" } @@ -47964,7 +47997,7 @@ "name": "SortOrder", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L119-L128" + "specLocation": "_types/sort.ts#L120-L129" }, { "kind": "type_alias", @@ -47972,7 +48005,7 @@ "name": "SortResults", "namespace": "_types" }, - "specLocation": "_types/sort.ts#L106-L106", + "specLocation": "_types/sort.ts#L107-L107", "type": { "kind": "array_of", "value": { @@ -66488,7 +66521,7 @@ }, { "name": "language", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -85835,7 +85868,7 @@ ], "description": "Number of primary and replica shards assigned to the node.", "name": "shards", - "required": false, + "required": true, "type": { "kind": "instance_of", "type": { @@ -85844,6 +85877,86 @@ } } }, + { + "description": "Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used", + "name": "shards.undesired", + "required": true, + "type": { + "items": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ], + "kind": "union_of" + } + }, + { + "aliases": [ + "wlf", + "writeLoadForecast" + ], + "description": "Sum of index write load forecasts", + "name": "write_load.forecast", + "required": true, + "type": { + "items": [ + { + "kind": "instance_of", + "type": { + "name": "double", + "namespace": "_types" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ], + "kind": "union_of" + } + }, + { + "aliases": [ + "dif", + "diskIndicesForecast" + ], + "description": "Sum of shard size forecasts", + "name": "disk.indices.forecast", + "required": true, + "type": { + "items": [ + { + "kind": "instance_of", + "type": { + "name": "ByteSize", + "namespace": "_types" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ], + "kind": "union_of" + } + }, { "aliases": [ "di", @@ -85851,7 +85964,7 @@ ], "description": "Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards.\nIMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.", "name": "disk.indices", - "required": false, + "required": true, "type": { "items": [ { @@ -85879,7 +85992,7 @@ ], "description": "Total disk space in use.\nElasticsearch retrieves this metric from the node’s operating system (OS).\nThe metric includes disk space for: Elasticsearch, including the translog and unassigned shards; the node’s operating system; any other applications or files on the node.\nUnlike `disk.indices`, this metric does not double-count disk space for hard-linked files.", "name": "disk.used", - "required": false, + "required": true, "type": { "items": [ { @@ -85907,7 +86020,7 @@ ], "description": "Free disk space available to Elasticsearch.\nElasticsearch retrieves this metric from the node’s operating system.\nDisk-based shard allocation uses this metric to assign shards to nodes based on available disk space.", "name": "disk.avail", - "required": false, + "required": true, "type": { "items": [ { @@ -85935,7 +86048,7 @@ ], "description": "Total disk space for the node, including in-use and available space.", "name": "disk.total", - "required": false, + "required": true, "type": { "items": [ { @@ -85963,7 +86076,7 @@ ], "description": "Total percentage of disk space in use. Calculated as `disk.used / disk.total`.", "name": "disk.percent", - "required": false, + "required": true, "type": { "items": [ { @@ -85990,7 +86103,7 @@ ], "description": "Network host for the node. Set using the `network.host` setting.", "name": "host", - "required": false, + "required": true, "type": { "items": [ { @@ -86014,7 +86127,7 @@ { "description": "IP address and port for the node.", "name": "ip", - "required": false, + "required": true, "type": { "items": [ { @@ -86041,7 +86154,7 @@ ], "description": "Name for the node. Set using the `node.name` setting.", "name": "node", - "required": false, + "required": true, "type": { "kind": "instance_of", "type": { @@ -86049,9 +86162,38 @@ "namespace": "_builtins" } } + }, + { + "aliases": [ + "r", + "role", + "nodeRole" + ], + "description": "Node roles", + "name": "node.role", + "required": true, + "type": { + "items": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ], + "kind": "union_of" + } } ], - "specLocation": "cat/allocation/types.ts#L24-L75" + "specLocation": "cat/allocation/types.ts#L24-L98" }, { "attachedBehaviors": [ @@ -199299,7 +199441,7 @@ }, { "name": "docs_remaining", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -199310,7 +199452,7 @@ }, { "name": "percent_complete", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -199321,7 +199463,7 @@ }, { "name": "total_docs", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index db98c6d11a..02959e3e27 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -498,6 +498,7 @@ export interface HealthReportIlmIndicator extends HealthReportBaseIndicator { export interface HealthReportIlmIndicatorDetails { ilm_status: LifecycleOperationMode policies: long + stagnating_indices: integer } export interface HealthReportImpact { @@ -577,6 +578,7 @@ export interface HealthReportShardsAvailabilityIndicator extends HealthReportBas export interface HealthReportShardsAvailabilityIndicatorDetails { creating_primaries: long + creating_replicas: long initializing_primaries: long initializing_replicas: long restarting_primaries: long @@ -608,7 +610,7 @@ export interface HealthReportSlmIndicator extends HealthReportBaseIndicator { export interface HealthReportSlmIndicatorDetails { slm_status: LifecycleOperationMode policies: long - unhealthy_policies: HealthReportSlmIndicatorUnhealthyPolicies + unhealthy_policies?: HealthReportSlmIndicatorUnhealthyPolicies } export interface HealthReportSlmIndicatorUnhealthyPolicies { @@ -2242,9 +2244,10 @@ export interface GeoDistanceSortKeys { ignore_unmapped?: boolean order?: SortOrder unit?: DistanceUnit + nested?: NestedSortValue } export type GeoDistanceSort = GeoDistanceSortKeys - & { [property: string]: GeoLocation | GeoLocation[] | SortMode | GeoDistanceType | boolean | SortOrder | DistanceUnit } + & { [property: string]: GeoLocation | GeoLocation[] | SortMode | GeoDistanceType | boolean | SortOrder | DistanceUnit | NestedSortValue } export type GeoDistanceType = 'arc' | 'plane' @@ -4754,7 +4757,7 @@ export type AnalysisSnowballLanguage = 'Armenian' | 'Basque' | 'Catalan' | 'Dani export interface AnalysisSnowballTokenFilter extends AnalysisTokenFilterBase { type: 'snowball' - language: AnalysisSnowballLanguage + language?: AnalysisSnowballLanguage } export interface AnalysisStandardAnalyzer { @@ -6506,28 +6509,39 @@ export interface CatAliasesRequest extends CatCatRequestBase { export type CatAliasesResponse = CatAliasesAliasesRecord[] export interface CatAllocationAllocationRecord { - shards?: string - s?: string - 'disk.indices'?: ByteSize | null - di?: ByteSize | null - diskIndices?: ByteSize | null - 'disk.used'?: ByteSize | null - du?: ByteSize | null - diskUsed?: ByteSize | null - 'disk.avail'?: ByteSize | null - da?: ByteSize | null - diskAvail?: ByteSize | null - 'disk.total'?: ByteSize | null - dt?: ByteSize | null - diskTotal?: ByteSize | null - 'disk.percent'?: Percentage | null - dp?: Percentage | null - diskPercent?: Percentage | null - host?: Host | null - h?: Host | null - ip?: Ip | null - node?: string - n?: string + shards: string + s: string + 'shards.undesired': string | null + 'write_load.forecast': double | null + wlf: double | null + writeLoadForecast: double | null + 'disk.indices.forecast': ByteSize | null + dif: ByteSize | null + diskIndicesForecast: ByteSize | null + 'disk.indices': ByteSize | null + di: ByteSize | null + diskIndices: ByteSize | null + 'disk.used': ByteSize | null + du: ByteSize | null + diskUsed: ByteSize | null + 'disk.avail': ByteSize | null + da: ByteSize | null + diskAvail: ByteSize | null + 'disk.total': ByteSize | null + dt: ByteSize | null + diskTotal: ByteSize | null + 'disk.percent': Percentage | null + dp: Percentage | null + diskPercent: Percentage | null + host: Host | null + h: Host | null + ip: Ip | null + node: string + n: string + 'node.role': string | null + r: string | null + role: string | null + nodeRole: string | null } export interface CatAllocationRequest extends CatCatRequestBase { @@ -18946,9 +18960,9 @@ export interface TransformGetTransformStatsTransformIndexerStats { export interface TransformGetTransformStatsTransformProgress { docs_indexed: long docs_processed: long - docs_remaining: long - percent_complete: double - total_docs: long + docs_remaining?: long + percent_complete?: double + total_docs?: long } export interface TransformGetTransformStatsTransformStats { diff --git a/specification/_global/health_report/types.ts b/specification/_global/health_report/types.ts index 908173ecd8..fc8119875e 100644 --- a/specification/_global/health_report/types.ts +++ b/specification/_global/health_report/types.ts @@ -108,6 +108,7 @@ export class ShardsAvailabilityIndicator extends BaseIndicator { } export class ShardsAvailabilityIndicatorDetails { creating_primaries: long + creating_replicas: long initializing_primaries: long initializing_replicas: long restarting_primaries: long @@ -150,6 +151,7 @@ export class IlmIndicator extends BaseIndicator { export class IlmIndicatorDetails { ilm_status: LifecycleOperationMode policies: long + stagnating_indices: integer } /** SLM */ @@ -160,7 +162,7 @@ export class SlmIndicator extends BaseIndicator { export class SlmIndicatorDetails { slm_status: LifecycleOperationMode policies: long - unhealthy_policies: SlmIndicatorUnhealthyPolicies + unhealthy_policies?: SlmIndicatorUnhealthyPolicies } export class SlmIndicatorUnhealthyPolicies { diff --git a/specification/_types/analysis/token_filters.ts b/specification/_types/analysis/token_filters.ts index e785e1fc9a..8885c7a540 100644 --- a/specification/_types/analysis/token_filters.ts +++ b/specification/_types/analysis/token_filters.ts @@ -310,7 +310,7 @@ export class ReverseTokenFilter extends TokenFilterBase { export class SnowballTokenFilter extends TokenFilterBase { type: 'snowball' - language: SnowballLanguage + language?: SnowballLanguage } export class StemmerOverrideTokenFilter extends TokenFilterBase { diff --git a/specification/_types/sort.ts b/specification/_types/sort.ts index ed32556886..2cff4948a6 100644 --- a/specification/_types/sort.ts +++ b/specification/_types/sort.ts @@ -67,6 +67,7 @@ export class GeoDistanceSort ignore_unmapped?: boolean order?: SortOrder unit?: DistanceUnit + nested?: NestedSortValue } export class ScriptSort { diff --git a/specification/cat/allocation/types.ts b/specification/cat/allocation/types.ts index 004fe44b02..067cb58b74 100644 --- a/specification/cat/allocation/types.ts +++ b/specification/cat/allocation/types.ts @@ -19,20 +19,37 @@ import { ByteSize } from '@_types/common' import { Host, Ip } from '@_types/Networking' -import { Percentage } from '@_types/Numeric' +import { double, Percentage } from '@_types/Numeric' export class AllocationRecord { /** * Number of primary and replica shards assigned to the node. * @aliases s */ - shards?: string + shards: string + + /** + * Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used + */ + 'shards.undesired': string | null + + /** + * Sum of index write load forecasts + * @aliases wlf,writeLoadForecast + */ + 'write_load.forecast': double | null + + /** + * Sum of shard size forecasts + * @aliases dif,diskIndicesForecast + */ + 'disk.indices.forecast': ByteSize | null /** * Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards. * IMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index. * @aliases di,diskIndices */ - 'disk.indices'?: ByteSize | null + 'disk.indices': ByteSize | null /** * Total disk space in use. * Elasticsearch retrieves this metric from the node’s operating system (OS). @@ -40,36 +57,42 @@ export class AllocationRecord { * Unlike `disk.indices`, this metric does not double-count disk space for hard-linked files. * @aliases du,diskUsed */ - 'disk.used'?: ByteSize | null + 'disk.used': ByteSize | null /** * Free disk space available to Elasticsearch. * Elasticsearch retrieves this metric from the node’s operating system. * Disk-based shard allocation uses this metric to assign shards to nodes based on available disk space. * @aliases da,diskAvail */ - 'disk.avail'?: ByteSize | null + 'disk.avail': ByteSize | null /** * Total disk space for the node, including in-use and available space. * @aliases dt,diskTotal */ - 'disk.total'?: ByteSize | null + 'disk.total': ByteSize | null /** * Total percentage of disk space in use. Calculated as `disk.used / disk.total`. * @aliases dp,diskPercent */ - 'disk.percent'?: Percentage | null + 'disk.percent': Percentage | null /** * Network host for the node. Set using the `network.host` setting. * @aliases h */ - host?: Host | null + host: Host | null /** * IP address and port for the node. */ - ip?: Ip | null + ip: Ip | null /** * Name for the node. Set using the `node.name` setting. * @aliases n */ - node?: string + node: string + + /** + * Node roles + * @aliases r,role,nodeRole + */ + 'node.role': string | null } diff --git a/specification/transform/get_transform_stats/types.ts b/specification/transform/get_transform_stats/types.ts index d3dab4ff6d..bbafa45f2b 100644 --- a/specification/transform/get_transform_stats/types.ts +++ b/specification/transform/get_transform_stats/types.ts @@ -48,9 +48,9 @@ export class TransformStatsHealth { export class TransformProgress { docs_indexed: long docs_processed: long - docs_remaining: long - percent_complete: double - total_docs: long + docs_remaining?: long + percent_complete?: double + total_docs?: long } export class TransformIndexerStats {