get-trained-models-stats.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --
  2. :api: get-trained-models-stats
  3. :request: GetTrainedModelsStatsRequest
  4. :response: GetTrainedModelsStatsResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get trained models stats API
  9. experimental[]
  10. Retrieves one or more trained model statistics.
  11. The API accepts a +{request}+ object and returns a +{response}+.
  12. [id="{upid}-{api}-request"]
  13. ==== Get trained models stats request
  14. A +{request}+ requires either a trained model ID, a comma-separated list of
  15. IDs, or the special wildcard `_all` to get stats for all trained models.
  16. ["source","java",subs="attributes,callouts,macros"]
  17. --------------------------------------------------
  18. include-tagged::{doc-tests-file}[{api}-request]
  19. --------------------------------------------------
  20. <1> Constructing a new GET request referencing an existing Trained Model
  21. <2> Set the paging parameters
  22. <3> Allow empty response if no trained models match the provided ID patterns.
  23. If false, an error will be thrown if no trained models match the
  24. ID patterns.
  25. include::../execution.asciidoc[]
  26. [id="{upid}-{api}-response"]
  27. ==== Response
  28. The returned +{response}+ contains the statistics
  29. for the requested trained model.
  30. ["source","java",subs="attributes,callouts,macros"]
  31. --------------------------------------------------
  32. include-tagged::{doc-tests-file}[{api}-response]
  33. --------------------------------------------------