get-trained-models-stats.asciidoc 1.3 KB

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