dataframeanalytics.asciidoc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. [role="xpack"]
  2. [[cat-dfanalytics]]
  3. === cat {dfanalytics} API
  4. ++++
  5. <titleabbrev>cat {dfanalytics}</titleabbrev>
  6. ++++
  7. .New API reference
  8. [sidebar]
  9. --
  10. For the most up-to-date API details, refer to {api-es}/group/endpoint-cat[Compact and aligned text (CAT) APIs]..
  11. --
  12. [IMPORTANT]
  13. ====
  14. cat APIs are only intended for human consumption using the command line or {kib}
  15. console. They are _not_ intended for use by applications. For application
  16. consumption, use the
  17. <<get-dfanalytics-stats,get data frame analytics jobs statistics API>>.
  18. ====
  19. Returns configuration and usage information about {dfanalytics-jobs}.
  20. [[cat-dfanalytics-request]]
  21. ==== {api-request-title}
  22. `GET /_cat/ml/data_frame/analytics/<data_frame_analytics_id>` +
  23. `GET /_cat/ml/data_frame/analytics`
  24. [[cat-dfanalytics-prereqs]]
  25. ==== {api-prereq-title}
  26. If the {es} {security-features} are enabled, you must have the following
  27. privileges:
  28. * cluster: `monitor_ml`
  29. For more information, see <<security-privileges>> and {ml-docs-setup-privileges}.
  30. ////
  31. [[cat-dfanalytics-desc]]
  32. ==== {api-description-title}
  33. ////
  34. [[cat-dfanalytics-path-params]]
  35. ==== {api-path-parms-title}
  36. `<data_frame_analytics_id>`::
  37. (Optional, string)
  38. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics-default]
  39. [[cat-dfanalytics-query-params]]
  40. ==== {api-query-parms-title}
  41. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=http-format]
  42. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-h]
  43. +
  44. If you do not specify which columns to include, the API returns the default
  45. columns. If you explicitly specify one or more columns, it returns only the
  46. specified columns.
  47. +
  48. Valid columns are:
  49. `assignment_explanation`, `ae`:::
  50. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=assignment-explanation-dfanalytics]
  51. `create_time`, `ct`, `createTime`:::
  52. (Default)
  53. The time when the {dfanalytics-job} was created.
  54. `description`, `d`:::
  55. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=description-dfa]
  56. `dest_index`, `di`, `destIndex`:::
  57. Name of the destination index.
  58. `failure_reason`, `fr`, `failureReason`:::
  59. Contains messages about the reason why a {dfanalytics-job} failed.
  60. `id`:::
  61. (Default)
  62. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics]
  63. `model_memory_limit`, `mml`, `modelMemoryLimit`:::
  64. The approximate maximum amount of memory resources that are permitted for the
  65. {dfanalytics-job}.
  66. `node.address`, `na`, `nodeAddress`:::
  67. The network address of the node that the {dfanalytics-job} is assigned to.
  68. `node.ephemeral_id`, `ne`, `nodeEphemeralId`:::
  69. The ephemeral ID of the node that the {dfanalytics-job} is assigned to.
  70. `node.id`, `ni`, `nodeId`:::
  71. The unique identifier of the node that the {dfanalytics-job} is assigned to.
  72. `node.name`, `nn`, `nodeName`:::
  73. The name of the node that the {dfanalytics-job} is assigned to.
  74. `progress`, `p`:::
  75. The progress report of the {dfanalytics-job} by phase.
  76. `source_index`, `si`, `sourceIndex`:::
  77. Name of the source index.
  78. `state`, `s`:::
  79. (Default)
  80. Current state of the {dfanalytics-job}.
  81. `type`, `t`:::
  82. (Default)
  83. The type of analysis that the {dfanalytics-job} performs.
  84. `version`, `v`:::
  85. The {es} version number in which the {dfanalytics-job} was created.
  86. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=help]
  87. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-s]
  88. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=time]
  89. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-v]
  90. [[cat-dfanalytics-example]]
  91. ==== {api-examples-title}
  92. [source,console]
  93. --------------------------------------------------
  94. GET _cat/ml/data_frame/analytics?v=true
  95. --------------------------------------------------
  96. // TEST[skip:kibana sample data]
  97. [source,console-result]
  98. ----
  99. id create_time type state
  100. classifier_job_1 2020-02-12T11:49:09.594Z classification stopped
  101. classifier_job_2 2020-02-12T11:49:14.479Z classification stopped
  102. classifier_job_3 2020-02-12T11:49:16.928Z classification stopped
  103. classifier_job_4 2020-02-12T11:49:19.127Z classification stopped
  104. classifier_job_5 2020-02-12T11:49:21.349Z classification stopped
  105. ----
  106. // TESTRESPONSE[skip:kibana sample data]