2019-11-26 11:28:26 -05:00
|
|
|
--
|
|
|
|
:api: get-trained-models-stats
|
|
|
|
:request: GetTrainedModelsStatsRequest
|
|
|
|
:response: GetTrainedModelsStatsResponse
|
|
|
|
--
|
|
|
|
[role="xpack"]
|
|
|
|
[id="{upid}-{api}"]
|
2020-09-04 19:57:15 -04:00
|
|
|
=== Get trained models stats API
|
2019-11-26 11:28:26 -05:00
|
|
|
|
|
|
|
experimental[]
|
|
|
|
|
2020-09-04 19:57:15 -04:00
|
|
|
Retrieves one or more trained model statistics.
|
2019-11-26 11:28:26 -05:00
|
|
|
The API accepts a +{request}+ object and returns a +{response}+.
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
2020-09-04 19:57:15 -04:00
|
|
|
==== Get trained models stats request
|
2019-11-26 11:28:26 -05:00
|
|
|
|
2020-09-04 19:57:15 -04:00
|
|
|
A +{request}+ requires either a trained model ID, a comma-separated list of
|
|
|
|
IDs, or the special wildcard `_all` to get stats for all trained models.
|
2019-11-26 11:28:26 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new GET request referencing an existing Trained Model
|
|
|
|
<2> Set the paging parameters
|
2020-09-04 19:57:15 -04:00
|
|
|
<3> Allow empty response if no trained models match the provided ID patterns.
|
|
|
|
If false, an error will be thrown if no trained models match the
|
2019-11-26 11:28:26 -05:00
|
|
|
ID patterns.
|
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Response
|
|
|
|
|
|
|
|
The returned +{response}+ contains the statistics
|
2020-09-04 19:57:15 -04:00
|
|
|
for the requested trained model.
|
2019-11-26 11:28:26 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|