transforms.asciidoc 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. [role="xpack"]
  2. [[cat-transforms]]
  3. === cat {transforms} API
  4. ++++
  5. <titleabbrev>cat transforms</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 <<get-transform,get transforms API>>.
  17. ====
  18. Returns configuration and usage information about {transforms}.
  19. [[cat-transforms-api-request]]
  20. ==== {api-request-title}
  21. `GET /_cat/transforms/<transform_id>` +
  22. `GET /_cat/transforms/_all` +
  23. `GET /_cat/transforms/*` +
  24. `GET /_cat/transforms`
  25. [[cat-transforms-api-prereqs]]
  26. ==== {api-prereq-title}
  27. * If the {es} {security-features} are enabled, you must have `monitor_transform`
  28. cluster privileges to use this API. The built-in `transform_user` role has these
  29. privileges. For more information, see <<security-privileges>> and
  30. <<built-in-roles>>.
  31. //[[cat-transforms-api-desc]]
  32. //==== {api-description-title}
  33. [[cat-transforms-api-path-params]]
  34. ==== {api-path-parms-title}
  35. `<transform_id>`::
  36. (Optional, string)
  37. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=transform-id-wildcard]
  38. [[cat-transforms-api-query-params]]
  39. ==== {api-query-parms-title}
  40. `allow_no_match`::
  41. (Optional, Boolean)
  42. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=allow-no-match-transforms1]
  43. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=http-format]
  44. `from`::
  45. (Optional, integer)
  46. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=from-transforms]
  47. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-h]
  48. +
  49. If you do not specify which columns to include, the API returns the default
  50. columns. If you explicitly specify one or more columns, it returns only the
  51. specified columns.
  52. +
  53. Valid columns are:
  54. `changes_last_detection_time`, `cldt`:::
  55. (Default)
  56. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=checkpointing-changes-last-detected-at]
  57. `checkpoint`, `cp`:::
  58. (Default)
  59. The sequence number for the checkpoint.
  60. `checkpoint_duration_time_exp_avg`, `cdtea`, `checkpointTimeExpAvg`:::
  61. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=exponential-avg-checkpoint-duration-ms]
  62. `checkpoint_progress`, `c`, `checkpointProgress`:::
  63. (Default)
  64. The progress of the next checkpoint that is currently in progress.
  65. `create_time`, `ct`, `createTime`:::
  66. The time the {transform} was created.
  67. `delete_time`, `dtime`:::
  68. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=delete-time-ms]
  69. `description`, `d`:::
  70. The description of the {transform}.
  71. `dest_index`, `di`, `destIndex`:::
  72. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=dest-index]
  73. `documents_deleted`, `docd`:::
  74. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=docs-deleted-transform]
  75. `documents_indexed`, `doci`:::
  76. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=docs-indexed]
  77. `docs_per_second`, `dps`:::
  78. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=transform-settings-docs-per-second]
  79. `documents_processed`, `docp`:::
  80. (Default)
  81. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=docs-processed]
  82. `frequency`, `f`:::
  83. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=frequency]
  84. `id`:::
  85. (Default)
  86. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
  87. `index_failure`, `if`:::
  88. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=index-failures]
  89. `index_time`, `itime`:::
  90. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=index-time-ms]
  91. `index_total`, `it`:::
  92. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=index-total]
  93. `indexed_documents_exp_avg`, `idea`:::
  94. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=exponential-avg-documents-indexed]
  95. `last_search_time`, `lst`, `lastSearchTime`:::
  96. (Default)
  97. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=checkpointing-last-search-time]
  98. `max_page_search_size`, `mpsz`:::
  99. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=transform-settings-max-page-search-size]
  100. `pages_processed`, `pp`:::
  101. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=pages-processed]
  102. `pipeline`, `p`:::
  103. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=dest-pipeline]
  104. `processed_documents_exp_avg`, `pdea`:::
  105. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=exponential-avg-documents-processed]
  106. `processing_time`, `pt`:::
  107. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=processing-time-ms]
  108. `reason`, `r`:::
  109. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=state-transform-reason]
  110. `search_failure`, `sf`:::
  111. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=search-failures]
  112. `search_time`, `stime`:::
  113. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=search-time-ms]
  114. `search_total`, `st`:::
  115. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=search-total]
  116. `source_index`, `si`, `sourceIndex`:::
  117. (Default)
  118. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=source-index-transforms]
  119. `state`, `s`:::
  120. (Default)
  121. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=state-transform]
  122. `transform_type`, `tt`:::
  123. Indicates the type of {transform}: `batch` or `continuous`.
  124. `trigger_count`, `tc`:::
  125. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=trigger-count]
  126. `version`, `v`:::
  127. The version of {es} that existed on the node when the {transform} was
  128. created.
  129. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=help]
  130. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-s]
  131. `size`::
  132. (Optional, integer)
  133. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=size-transforms]
  134. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=time]
  135. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-v]
  136. [[cat-transforms-api-examples]]
  137. ==== {api-examples-title}
  138. [source,console]
  139. --------------------------------------------------
  140. GET /_cat/transforms?v=true&format=json
  141. --------------------------------------------------
  142. // TEST[skip:kibana sample data]
  143. [source,console-result]
  144. ----
  145. [
  146. {
  147. "id" : "ecommerce_transform",
  148. "state" : "started",
  149. "checkpoint" : "1",
  150. "documents_processed" : "705",
  151. "checkpoint_progress" : "100.00",
  152. "changes_last_detection_time" : null
  153. }
  154. ]
  155. ----
  156. // TESTRESPONSE[skip:kibana sample data]