gwcmemorycachestatistics.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoWebCache Memory Cache Statistics
  6. description: A response contains memory cache statistics
  7. contact:
  8. name: GeoServer
  9. email: 'geoserver-users@osgeo.org'
  10. url: 'https://geoserver.org/comm/'
  11. host: localhost:8080
  12. schemes:
  13. - http
  14. basePath: /geoserver/gwc/rest
  15. paths:
  16. /statistics:
  17. get:
  18. operationId: statisticsGet
  19. tags:
  20. - "GwcMemoryCacheStatistics"
  21. summary: Returns XML or JSON response with memory cache statistics
  22. description: When appended with .json or .xml will respond with memory caches statistics in the requested format if
  23. the blobstore used is an instance of MemoryBlobStore.
  24. produces:
  25. - application/html
  26. - application/json
  27. responses:
  28. 200:
  29. description: OK
  30. examples:
  31. application/xml: |
  32. <gwcInMemoryCacheStatistics>
  33. <hitCount>0</hitCount>
  34. <missCount>0</missCount>
  35. <evictionCount>0</evictionCount>
  36. <totalCount>0</totalCount>
  37. <hitRate>100.0</hitRate>
  38. <missRate>0.0</missRate>
  39. <currentMemoryOccupation>0.0</currentMemoryOccupation>
  40. <totalSize>67108864</totalSize>
  41. <actualSize>0</actualSize>
  42. </gwcInMemoryCacheStatistics>
  43. application/json: |
  44. {
  45. "org.geowebcache.storage.blobstore.memory.CacheStatistics": {
  46. "evictionCount": 0,
  47. "hitCount": 0,
  48. "totalSize": 16777216,
  49. "actualSize": 0,
  50. "missRate": 0,
  51. "totalCount": 0,
  52. "currentMemoryOccupation": 0,
  53. "hitRate": 100,
  54. "missCount": 0
  55. }
  56. }