datafeeds.asciidoc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. [role="xpack"]
  2. [[cat-datafeeds]]
  3. === cat {dfeeds} API
  4. ++++
  5. <titleabbrev>cat {dfeeds}</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 <<ml-get-datafeed-stats,get datafeed statistics API>>.
  17. ====
  18. Returns configuration and usage information about {dfeeds}.
  19. [[cat-datafeeds-request]]
  20. ==== {api-request-title}
  21. `GET /_cat/ml/datafeeds/<feed_id>` +
  22. `GET /_cat/ml/datafeeds`
  23. [[cat-datafeeds-prereqs]]
  24. ==== {api-prereq-title}
  25. * If the {es} {security-features} are enabled, you must have `monitor_ml`,
  26. `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
  27. <<security-privileges>> and {ml-docs-setup-privileges}.
  28. [[cat-datafeeds-desc]]
  29. ==== {api-description-title}
  30. {dfeeds-cap} retrieve data from {es} for analysis by {anomaly-jobs}. For more
  31. information, see {ml-docs}/ml-dfeeds.html[{dfeeds-cap}].
  32. NOTE: This API returns a maximum of 10,000 jobs.
  33. [[cat-datafeeds-path-params]]
  34. ==== {api-path-parms-title}
  35. `<feed_id>`::
  36. (Optional, string)
  37. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=datafeed-id]
  38. [[cat-datafeeds-query-params]]
  39. ==== {api-query-parms-title}
  40. `allow_no_match`::
  41. (Optional, Boolean)
  42. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=allow-no-match-datafeeds]
  43. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=http-format]
  44. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-h]
  45. +
  46. If you do not specify which columns to include, the API returns the default
  47. columns. If you explicitly specify one or more columns, it returns only the
  48. specified columns.
  49. +
  50. Valid columns are:
  51. `assignment_explanation`, `ae`:::
  52. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=assignment-explanation-datafeeds]
  53. `buckets.count`, `bc`, `bucketsCount`:::
  54. (Default)
  55. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=bucket-count]
  56. `id`:::
  57. (Default)
  58. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=datafeed-id]
  59. `node.address`, `na`, `nodeAddress`:::
  60. The network address of the node.
  61. +
  62. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
  63. `node.ephemeral_id`, `ne`, `nodeEphemeralId`:::
  64. The ephemeral ID of the node.
  65. +
  66. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
  67. `node.id`, `ni`, `nodeId`:::
  68. The unique identifier of the node.
  69. +
  70. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
  71. `node.name`, `nn`, `nodeName`:::
  72. The node name.
  73. +
  74. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
  75. `search.bucket_avg`, `sba`, `searchBucketAvg`:::
  76. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=search-bucket-avg]
  77. `search.count`, `sc`, `searchCount`:::
  78. (Default)
  79. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=search-count]
  80. `search.exp_avg_hour`, `seah`, `searchExpAvgHour`:::
  81. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=search-exp-avg-hour]
  82. `search.time`, `st`, `searchTime`:::
  83. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=search-time]
  84. `state`, `s`:::
  85. (Default)
  86. include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=state-datafeed]
  87. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=help]
  88. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-s]
  89. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=time]
  90. include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=cat-v]
  91. [[cat-datafeeds-example]]
  92. ==== {api-examples-title}
  93. [source,console]
  94. --------------------------------------------------
  95. GET _cat/ml/datafeeds?v=true
  96. --------------------------------------------------
  97. // TEST[skip:kibana sample data]
  98. [source,console-result]
  99. ----
  100. id state buckets.count search.count
  101. datafeed-high_sum_total_sales stopped 743 7
  102. datafeed-low_request_rate stopped 1457 3
  103. datafeed-response_code_rates stopped 1460 18
  104. datafeed-url_scanning stopped 1460 18
  105. ----
  106. // TESTRESPONSE[skip:kibana sample data]