trainedmodel.asciidoc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. [role="xpack"]
  2. [[cat-trained-model]]
  3. === cat trained model API
  4. ++++
  5. <titleabbrev>cat trained model</titleabbrev>
  6. ++++
  7. [IMPORTANT]
  8. ====
  9. cat APIs are only intended for human consumption using the command line or {kib}
  10. console. They are _not_ intended for use by applications. For application
  11. consumption, use the <<get-trained-models,get trained models API>>.
  12. ====
  13. Returns configuration and usage information about {infer} trained models.
  14. [[cat-trained-model-request]]
  15. ==== {api-request-title}
  16. `GET /_cat/ml/trained_models`
  17. [[cat-trained-model-prereqs]]
  18. ==== {api-prereq-title}
  19. If the {es} {security-features} are enabled, you must have the following
  20. privileges:
  21. * cluster: `monitor_ml`
  22. For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
  23. ////
  24. [[cat-trained-model-desc]]
  25. ==== {api-description-title}
  26. ////
  27. [[cat-trained-model-query-params]]
  28. ==== {api-query-parms-title}
  29. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=bytes]
  30. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=http-format]
  31. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-h]
  32. +
  33. If you do not specify which columns to include, the API returns the default
  34. columns. If you explicitly specify one or more columns, it returns only the
  35. specified columns.
  36. +
  37. Valid columns are:
  38. `create_time`, `ct`:::
  39. The time when the trained model was created.
  40. `created_by`, `c`, `createdBy`:::
  41. Information on the creator of the trained model.
  42. `data_frame_analytics_id`, `df`, `dataFrameAnalytics`:::
  43. Identifier for the {dfanalytics-job} that created the model. Only displayed if
  44. it is still available.
  45. `description`, `d`:::
  46. The description of the trained model.
  47. `heap_size`, `hs`, `modelHeapSize`:::
  48. (Default)
  49. The estimated heap size to keep the trained model in memory.
  50. `id`:::
  51. (Default)
  52. Identifier for the trained model.
  53. `ingest.count`, `ic`, `ingestCount`:::
  54. The total number of documents that are processed by the model.
  55. `ingest.current`, `icurr`, `ingestCurrent`:::
  56. The total number of document that are currently being handled by the trained
  57. model.
  58. `ingest.failed`, `if`, `ingestFailed`:::
  59. The total number of failed ingest attempts with the trained model.
  60. `ingest.pipelines`, `ip`, `ingestPipelines`:::
  61. (Default)
  62. The total number of ingest pipelines that are referencing the trained model.
  63. `ingest.time`, `it`, `ingestTime`:::
  64. The total time that is spent processing documents with the trained model.
  65. `license`, `l`:::
  66. The license level of the trained model.
  67. `operations`, `o`, `modelOperations`:::
  68. (Default)
  69. The estimated number of operations to use the trained model. This number helps
  70. measuring the computational complexity of the model.
  71. `version`, `v`:::
  72. The {es} version number in which the trained model was created.
  73. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=help]
  74. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-s]
  75. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=time]
  76. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cat-v]
  77. [[cat-trained-model-example]]
  78. ==== {api-examples-title}
  79. [source,console]
  80. --------------------------------------------------
  81. GET _cat/ml/trained_models?h=c,o,l,ct,v&v=ture
  82. --------------------------------------------------
  83. // TEST[skip:kibana sample data]
  84. [source,console-result]
  85. ----
  86. id created_by operations license create_time version
  87. ddddd-1580216177138 _xpack 196 PLATINUM 2020-01-28T12:56:17.138Z 8.0.0
  88. flight-regress-1580215685537 _xpack 102 PLATINUM 2020-01-28T12:48:05.537Z 8.0.0
  89. lang_ident_model_1 _xpack 39629 BASIC 2019-12-05T12:28:34.594Z 7.6.0
  90. ----
  91. // TESTRESPONSE[skip:kibana sample data]