get-info.asciidoc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --
  2. :api: get-ml-info
  3. :request: MlInfoRequest
  4. :response: MlInfoResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === ML get info API
  9. Provides defaults and limits used internally by {ml}.
  10. These may be useful to a user interface that needs to interpret machine learning
  11. configurations where certain fields are missing because the end user was happy
  12. with the default value.
  13. It accepts a +{request}+ object and responds with a +{response}+ object.
  14. [id="{upid}-{api}-request"]
  15. ==== Get info request
  16. ["source","java",subs="attributes,callouts,macros"]
  17. --------------------------------------------------
  18. include-tagged::{doc-tests-file}[{api}-request]
  19. --------------------------------------------------
  20. <1> Constructing a new request.
  21. [id="{upid}-{api}-response"]
  22. ==== ML get info response
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[{api}-response]
  26. --------------------------------------------------
  27. <1> `info` from the +{response}+ contains {ml} info details.
  28. include::../execution.asciidoc[]