trainedmodel.asciidoc 3.4 KB

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