datafeeds.asciidoc 3.9 KB

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