get-transform-stats.asciidoc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[get-data-frame-transform-stats]]
  4. === Get {dataframe-transform} statistics API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Get {dataframe-transform} statistics</titleabbrev>
  8. ++++
  9. Retrieves usage information for {dataframe-transforms}.
  10. ==== Request
  11. `GET _data_frame/transforms/<data_frame_transform_id>/_stats`
  12. `GET _data_frame/transforms/<data_frame_transform_id>,<data_frame_transform_id>/_stats` +
  13. `GET _data_frame/transforms/_stats` +
  14. `GET _data_frame/transforms/_all/_stats` +
  15. `GET _data_frame/transforms/*/_stats` +
  16. //===== Description
  17. ==== Path Parameters
  18. `data_frame_transform_id`::
  19. (string) Identifier for the {dataframe-transform}. It can be a
  20. {dataframe-transform} identifier or a wildcard expression. If you do not
  21. specify one of these options, the API returns information for all
  22. {dataframe-transforms}.
  23. ==== Results
  24. The API returns the following information:
  25. `transforms`::
  26. (array) An array of statistics objects for {dataframe-transforms}.
  27. //==== Authorization
  28. ==== Examples
  29. The following example gets usage information for the `ecommerce_transform`
  30. {dataframe-transform}:
  31. [source,js]
  32. --------------------------------------------------
  33. GET _data_frame/transforms/ecommerce_transform/_stats
  34. --------------------------------------------------
  35. // CONSOLE
  36. // TEST[skip:todo]
  37. The API returns the following results:
  38. [source,js]
  39. ----
  40. {
  41. "count" : 1,
  42. "transforms" : [
  43. {
  44. "id" : "ecommerce_transform",
  45. "state" : {
  46. "indexer_state" : "started",
  47. "task_state": "started",
  48. "current_position" : {
  49. "customer_id" : "9"
  50. },
  51. "generation" : 1
  52. },
  53. "stats" : {
  54. "pages_processed" : 0,
  55. "documents_processed" : 0,
  56. "documents_indexed" : 0,
  57. "trigger_count" : 0,
  58. "index_time_in_ms" : 0,
  59. "index_total" : 0,
  60. "index_failures" : 0,
  61. "search_time_in_ms" : 0,
  62. "search_total" : 0,
  63. "search_failures" : 0
  64. }
  65. }
  66. ]
  67. }
  68. ----
  69. // TESTRESPONSE