trainedmodel.asciidoc 3.4 KB

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