|
@@ -16,11 +16,11 @@ Retrieves usage information for trained models.
|
|
|
|
|
|
`GET _ml/trained_models/_all/_stats` +
|
|
|
|
|
|
-`GET _ml/trained_models/<model_id>/_stats` +
|
|
|
+`GET _ml/trained_models/<model_id_or_deployment_id>/_stats` +
|
|
|
|
|
|
-`GET _ml/trained_models/<model_id>,<model_id_2>/_stats` +
|
|
|
+`GET _ml/trained_models/<model_id_or_deployment_id>,<model_id_2_or_deployment_id_2>/_stats` +
|
|
|
|
|
|
-`GET _ml/trained_models/<model_id_pattern*>,<model_id_2>/_stats`
|
|
|
+`GET _ml/trained_models/<model_id_pattern*_or_deployment_id_pattern*>,<model_id_2_or_deployment_id_2>/_stats`
|
|
|
|
|
|
|
|
|
[[ml-get-trained-models-stats-prereq]]
|
|
@@ -33,17 +33,20 @@ Requires the `monitor_ml` cluster privilege. This privilege is included in the
|
|
|
[[ml-get-trained-models-stats-desc]]
|
|
|
== {api-description-title}
|
|
|
|
|
|
-You can get usage information for multiple trained models in a single API
|
|
|
-request by using a comma-separated list of model IDs or a wildcard expression.
|
|
|
+You can get usage information for multiple trained models or trained model
|
|
|
+deployments in a single API request by using a comma-separated list of model
|
|
|
+IDs, deployment IDs, or a wildcard expression.
|
|
|
|
|
|
|
|
|
[[ml-get-trained-models-stats-path-params]]
|
|
|
== {api-path-parms-title}
|
|
|
|
|
|
-`<model_id>`::
|
|
|
+`<model_id_or_deployment_id>`::
|
|
|
(Optional, string)
|
|
|
-include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-id-or-alias]
|
|
|
-
|
|
|
+The unique identifier of the model or the deployment. If a model has multiple
|
|
|
+deployments, and the ID of one of the deployments matches the model ID, then the
|
|
|
+model ID takes precedence; the results are returned for all deployments of the
|
|
|
+model.
|
|
|
|
|
|
[[ml-get-trained-models-stats-query-params]]
|
|
|
== {api-query-parms-title}
|
|
@@ -116,6 +119,9 @@ The detailed allocation state related to the nodes.
|
|
|
The desired number of nodes for model allocation.
|
|
|
======
|
|
|
|
|
|
+`deployment_id`:::
|
|
|
+include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=deployment-id]
|
|
|
+
|
|
|
`error_count`:::
|
|
|
(integer)
|
|
|
The sum of `error_count` for all nodes in the deployment.
|