caches_stats.asciidoc 1009 B

123456789101112131415161718192021222324252627282930313233
  1. --
  2. :api: searchable-snapshots-caches-stats
  3. :request: CachesStatsRequest
  4. :response: CachesStatsResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Cache Stats API
  9. [id="{upid}-{api}-request"]
  10. ==== Request
  11. The Cache Stats API provides statistics about searchable snapshot shared cache.
  12. ["source","java",subs="attributes,callouts,macros"]
  13. --------------------------------------------------
  14. include-tagged::{doc-tests-file}[{api}-request]
  15. --------------------------------------------------
  16. <1> Example of a request targeting all data nodes.
  17. <2> Example of a request targeting two specific nodes.
  18. [id="{upid}-{api}-response"]
  19. ==== Response
  20. The returned +{response}+ provides the following statistics:
  21. ["source","java",subs="attributes,callouts,macros"]
  22. --------------------------------------------------
  23. include-tagged::{doc-tests-file}[{api}-response]
  24. --------------------------------------------------
  25. <1> The list of cache statistics for all nodes involved in the request.
  26. include::../execution.asciidoc[]