datafeeds.asciidoc 3.6 KB

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