datafeeds.asciidoc 3.6 KB

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