datafeeds.asciidoc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. ////
  19. [[cat-datafeeds-desc]]
  20. ==== {api-description-title}
  21. TBD: This API returns a maximum of 10,000 {dfeeds}.
  22. ////
  23. [[cat-datafeeds-path-params]]
  24. ==== {api-path-parms-title}
  25. `<feed_id>`::
  26. (Optional, string)
  27. include::{docdir}/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::{docdir}/ml/ml-shared.asciidoc[tag=allow-no-datafeeds]
  33. include::{docdir}/rest-api/common-parms.asciidoc[tag=http-format]
  34. include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-h]
  35. include::{docdir}/rest-api/common-parms.asciidoc[tag=help]
  36. include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
  37. include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
  38. include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
  39. [[cat-datafeeds-results]]
  40. ==== {api-response-body-title}
  41. `assignment_explanation`::
  42. include::{docdir}/ml/ml-shared.asciidoc[tag=assignment-explanation]
  43. +
  44. To retrieve this information, specify the `ae` column in the `h` query parameter.
  45. `bucket.count`::
  46. include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-count]
  47. +
  48. To retrieve this information, specify the `bc` or `bucketCount` column in the
  49. `h` query parameter.
  50. `id`::
  51. include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id]
  52. +
  53. To retrieve this information, specify the `id` column in the `h` query parameter.
  54. `node.address`::
  55. The network address of the node.
  56. +
  57. include::{docdir}/ml/ml-shared.asciidoc[tag=node]
  58. +
  59. To retrieve this information, specify the `na` or `nodeAddress` column in the
  60. `h` query parameter.
  61. `node.ephemeral_id`::
  62. The ephemeral ID of the node.
  63. +
  64. include::{docdir}/ml/ml-shared.asciidoc[tag=node]
  65. +
  66. To retrieve this information, specify the `ne` or `nodeEphemeralId` column in
  67. the `h` query parameter.
  68. `node.id`::
  69. The unique identifier of the node.
  70. +
  71. include::{docdir}/ml/ml-shared.asciidoc[tag=node]
  72. +
  73. To retrieve this information, specify the `ni` or `nodeId` column in the `h`
  74. query parameter.
  75. `node.name`::
  76. The node name.
  77. +
  78. include::{docdir}/ml/ml-shared.asciidoc[tag=node]
  79. +
  80. To retrieve this information, specify the `nn` or `nodeName` column in the `h`
  81. query parameter.
  82. `search.bucket_avg`::
  83. include::{docdir}/ml/ml-shared.asciidoc[tag=search-bucket-avg]
  84. +
  85. To retrieve this information, specify the `sba` or `searchBucketAvg` column in
  86. the `h` query parameter.
  87. `search.count`::
  88. include::{docdir}/ml/ml-shared.asciidoc[tag=search-count]
  89. +
  90. To retrieve this information, specify the `sc` or `searchCount` column in the
  91. `h` query parameter.
  92. `search.exp_avg_hour`::
  93. include::{docdir}/ml/ml-shared.asciidoc[tag=search-exp-avg-hour]
  94. +
  95. To retrieve this information, specify the `seah` or `searchExpAvgHour` column in
  96. the `h` query parameter.
  97. `search.time`::
  98. include::{docdir}/ml/ml-shared.asciidoc[tag=search-time]
  99. +
  100. To retrieve this information, specify the `st` or `searchTime` column in the `h`
  101. query parameter.
  102. `state`::
  103. include::{docdir}/ml/ml-shared.asciidoc[tag=state-datafeed]
  104. +
  105. To retrieve this information, specify the `s` column in the `h` query parameter.
  106. [[cat-datafeeds-example]]
  107. ==== {api-examples-title}
  108. [source,console]
  109. --------------------------------------------------
  110. GET _cat/ml/datafeeds?v
  111. --------------------------------------------------
  112. // TEST[skip:kibana sample data]
  113. [source,console-result]
  114. ----
  115. id state bucket.count search.count
  116. datafeed-high_sum_total_sales stopped 743 7
  117. datafeed-low_request_rate stopped 1457 3
  118. datafeed-response_code_rates stopped 1460 18
  119. datafeed-url_scanning stopped 1460 18
  120. ----
  121. // TESTRESPONSE[skip:kibana sample data]