diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 9caaaea658..fb8cfb312c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -86114,12 +86114,12 @@ "peak_throughput_per_minute": { "type": "number" }, - "rejection_execution_count": { + "rejected_execution_count": { "description": "The number of inference requests that were not processed because the queue was full.", "type": "number" }, "routing_state": { - "$ref": "#/components/schemas/ml._types:TrainedModelAssignmentRoutingTable" + "$ref": "#/components/schemas/ml._types:TrainedModelAssignmentRoutingStateAndReason" }, "start_time": { "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" @@ -86142,7 +86142,7 @@ "throughput_last_minute" ] }, - "ml._types:TrainedModelAssignmentRoutingTable": { + "ml._types:TrainedModelAssignmentRoutingStateAndReason": { "type": "object", "properties": { "reason": { @@ -86151,20 +86151,10 @@ }, "routing_state": { "$ref": "#/components/schemas/ml._types:RoutingState" - }, - "current_allocations": { - "description": "Current number of allocations.", - "type": "number" - }, - "target_allocations": { - "description": "Target number of allocations.", - "type": "number" } }, "required": [ - "routing_state", - "current_allocations", - "target_allocations" + "routing_state" ] }, "ml._types:RoutingState": { @@ -87237,6 +87227,31 @@ "task_parameters" ] }, + "ml._types:TrainedModelAssignmentRoutingTable": { + "type": "object", + "properties": { + "reason": { + "description": "The reason for the current state. It is usually populated only when the\n`routing_state` is `failed`.", + "type": "string" + }, + "routing_state": { + "$ref": "#/components/schemas/ml._types:RoutingState" + }, + "current_allocations": { + "description": "Current number of allocations.", + "type": "number" + }, + "target_allocations": { + "description": "Target number of allocations.", + "type": "number" + } + }, + "required": [ + "routing_state", + "current_allocations", + "target_allocations" + ] + }, "ml._types:TrainedModelAssignmentTaskParameters": { "type": "object", "properties": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index d948cedae7..2236a68e82 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -55988,12 +55988,12 @@ "peak_throughput_per_minute": { "type": "number" }, - "rejection_execution_count": { + "rejected_execution_count": { "description": "The number of inference requests that were not processed because the queue was full.", "type": "number" }, "routing_state": { - "$ref": "#/components/schemas/ml._types:TrainedModelAssignmentRoutingTable" + "$ref": "#/components/schemas/ml._types:TrainedModelAssignmentRoutingStateAndReason" }, "start_time": { "$ref": "#/components/schemas/_types:EpochTimeUnitMillis" @@ -56016,7 +56016,7 @@ "throughput_last_minute" ] }, - "ml._types:TrainedModelAssignmentRoutingTable": { + "ml._types:TrainedModelAssignmentRoutingStateAndReason": { "type": "object", "properties": { "reason": { @@ -56025,20 +56025,10 @@ }, "routing_state": { "$ref": "#/components/schemas/ml._types:RoutingState" - }, - "current_allocations": { - "description": "Current number of allocations.", - "type": "number" - }, - "target_allocations": { - "description": "Target number of allocations.", - "type": "number" } }, "required": [ - "routing_state", - "current_allocations", - "target_allocations" + "routing_state" ] }, "ml._types:RoutingState": { @@ -57033,6 +57023,31 @@ "task_parameters" ] }, + "ml._types:TrainedModelAssignmentRoutingTable": { + "type": "object", + "properties": { + "reason": { + "description": "The reason for the current state. It is usually populated only when the\n`routing_state` is `failed`.", + "type": "string" + }, + "routing_state": { + "$ref": "#/components/schemas/ml._types:RoutingState" + }, + "current_allocations": { + "description": "Current number of allocations.", + "type": "number" + }, + "target_allocations": { + "description": "Target number of allocations.", + "type": "number" + } + }, + "required": [ + "routing_state", + "current_allocations", + "target_allocations" + ] + }, "ml._types:TrainedModelAssignmentTaskParameters": { "type": "object", "properties": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 01b661caa1..ec4493b5d8 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -139124,7 +139124,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L487-L496" + "specLocation": "ml/_types/TrainedModel.ts#L499-L508" }, { "kind": "interface", @@ -139145,7 +139145,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L479-L481" + "specLocation": "ml/_types/TrainedModel.ts#L491-L493" }, { "kind": "interface", @@ -139166,7 +139166,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L483-L485" + "specLocation": "ml/_types/TrainedModel.ts#L495-L497" }, { "kind": "interface", @@ -139583,7 +139583,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L451-L458" + "specLocation": "ml/_types/TrainedModel.ts#L463-L470" }, { "kind": "interface", @@ -139758,7 +139758,7 @@ }, { "description": "The number of inference requests that were not processed because the queue was full.", - "name": "rejection_execution_count", + "name": "rejected_execution_count", "required": false, "type": { "kind": "instance_of", @@ -139775,7 +139775,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TrainedModelAssignmentRoutingTable", + "name": "TrainedModelAssignmentRoutingStateAndReason", "namespace": "ml._types" } } @@ -139842,7 +139842,7 @@ { "kind": "interface", "name": { - "name": "TrainedModelAssignmentRoutingTable", + "name": "TrainedModelAssignmentRoutingStateAndReason", "namespace": "ml._types" }, "properties": [ @@ -139869,33 +139869,9 @@ "namespace": "ml._types" } } - }, - { - "description": "Current number of allocations.", - "name": "current_allocations", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "description": "Target number of allocations.", - "name": "target_allocations", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } } ], - "specLocation": "ml/_types/TrainedModel.ts#L431-L449" + "specLocation": "ml/_types/TrainedModel.ts#L431-L441" }, { "kind": "interface", @@ -142462,7 +142438,65 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L460-L477" + "specLocation": "ml/_types/TrainedModel.ts#L472-L489" + }, + { + "kind": "interface", + "name": { + "name": "TrainedModelAssignmentRoutingTable", + "namespace": "ml._types" + }, + "properties": [ + { + "description": "The reason for the current state. It is usually populated only when the\n`routing_state` is `failed`.", + "name": "reason", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The current routing state.", + "name": "routing_state", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "RoutingState", + "namespace": "ml._types" + } + } + }, + { + "description": "Current number of allocations.", + "name": "current_allocations", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "Target number of allocations.", + "name": "target_allocations", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + } + ], + "specLocation": "ml/_types/TrainedModel.ts#L443-L461" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 6e0a5e941e..504bf815ed 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -175597,7 +175597,41 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L460-L477" + "specLocation": "ml/_types/TrainedModel.ts#L472-L489" + }, + { + "kind": "interface", + "name": { + "name": "TrainedModelAssignmentRoutingStateAndReason", + "namespace": "ml._types" + }, + "properties": [ + { + "description": "The reason for the current state. It is usually populated only when the\n`routing_state` is `failed`.", + "name": "reason", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The current routing state.", + "name": "routing_state", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "RoutingState", + "namespace": "ml._types" + } + } + } + ], + "specLocation": "ml/_types/TrainedModel.ts#L431-L441" }, { "kind": "interface", @@ -175655,7 +175689,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L431-L449" + "specLocation": "ml/_types/TrainedModel.ts#L443-L461" }, { "kind": "interface", @@ -176206,7 +176240,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L451-L458" + "specLocation": "ml/_types/TrainedModel.ts#L463-L470" }, { "kind": "interface", @@ -176396,7 +176430,7 @@ }, { "description": "The number of inference requests that were not processed because the queue was full.", - "name": "rejection_execution_count", + "name": "rejected_execution_count", "required": false, "type": { "kind": "instance_of", @@ -176413,7 +176447,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TrainedModelAssignmentRoutingTable", + "name": "TrainedModelAssignmentRoutingStateAndReason", "namespace": "ml._types" } } @@ -176954,7 +176988,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L479-L481" + "specLocation": "ml/_types/TrainedModel.ts#L491-L493" }, { "kind": "interface", @@ -176975,7 +177009,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L483-L485" + "specLocation": "ml/_types/TrainedModel.ts#L495-L497" }, { "kind": "interface", @@ -177009,7 +177043,7 @@ } } ], - "specLocation": "ml/_types/TrainedModel.ts#L487-L496" + "specLocation": "ml/_types/TrainedModel.ts#L499-L508" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index faabd47ad1..e8e0820577 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -15802,6 +15802,11 @@ export interface MlTrainedModelAssignment { task_parameters: MlTrainedModelAssignmentTaskParameters } +export interface MlTrainedModelAssignmentRoutingStateAndReason { + reason?: string + routing_state: MlRoutingState +} + export interface MlTrainedModelAssignmentRoutingTable { reason?: string routing_state: MlRoutingState @@ -15876,8 +15881,8 @@ export interface MlTrainedModelDeploymentNodesStats { number_of_allocations?: integer number_of_pending_requests?: integer peak_throughput_per_minute: long - rejection_execution_count?: integer - routing_state: MlTrainedModelAssignmentRoutingTable + rejected_execution_count?: integer + routing_state: MlTrainedModelAssignmentRoutingStateAndReason start_time?: EpochTime threads_per_allocation?: integer throughput_last_minute: integer diff --git a/specification/ml/_types/TrainedModel.ts b/specification/ml/_types/TrainedModel.ts index acc7fe5c4f..1c48b362f1 100644 --- a/specification/ml/_types/TrainedModel.ts +++ b/specification/ml/_types/TrainedModel.ts @@ -187,9 +187,9 @@ export class TrainedModelDeploymentNodesStats { peak_throughput_per_minute: long /** The number of inference requests that were not processed because the queue was full. */ - rejection_execution_count?: integer + rejected_execution_count?: integer /** The current routing state and reason for the current routing state for this allocation. */ - routing_state: TrainedModelAssignmentRoutingTable + routing_state: TrainedModelAssignmentRoutingStateAndReason /** The epoch timestamp when the allocation started. */ start_time?: EpochTime /** The number of threads used by each allocation during inference. */ @@ -428,6 +428,18 @@ export enum RoutingState { stopping } +export class TrainedModelAssignmentRoutingStateAndReason { + /** + * The reason for the current state. It is usually populated only when the + * `routing_state` is `failed`. + */ + reason?: string + /** + * The current routing state. + */ + routing_state: RoutingState +} + export class TrainedModelAssignmentRoutingTable { /** * The reason for the current state. It is usually populated only when the