system-status.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer System Status
  6. description: Request provides details about OWS and REST requests that GeoServer has handled
  7. contact:
  8. name: GeoServer
  9. email: 'geoserver-users@osgeo.org'
  10. url: 'https://geoserver.org/comm/'
  11. host: localhost:8080
  12. basePath: /geoserver/rest
  13. paths:
  14. /about/system-status:
  15. get:
  16. operationId: getMonitorRequests
  17. tags:
  18. - "SystemStatus"
  19. summary: Get a list of requests
  20. description: |
  21. Returns a list of system-level information.
  22. Major operating systems (Linux, Windows and MacOX) are supported out of the box.
  23. produces:
  24. - text/html
  25. - application/xml
  26. - application/json
  27. responses:
  28. 200:
  29. description: OK
  30. schema:
  31. $ref: "#/definitions/Metrics"
  32. examples:
  33. application/json: |
  34. {
  35. "metrics": {
  36. "metric": [
  37. {
  38. "available": true,
  39. "category": "FILE_SYSTEM",
  40. "description": "Partition [/dev/nvme0n1p2] total space",
  41. "identifier": "/dev/nvme0n1p2",
  42. "name": "PARTITION_TOTAL",
  43. "priority": 507,
  44. "unit": "bytes",
  45. "value": 99614720
  46. },
  47. (...)
  48. application/xml: |
  49. <metrics>
  50. <metric>
  51. <value>99614720</value>
  52. <available>true</available>
  53. <description>Partition [/dev/nvme0n1p2] total space</description>
  54. <name>PARTITION_TOTAL</name>
  55. <unit>bytes</unit>
  56. <category>FILE_SYSTEM</category>
  57. <identifier>/dev/nvme0n1p2</identifier>
  58. <priority>507</priority>
  59. </metric>
  60. (...)
  61. definitions:
  62. Metrics:
  63. title: metrics
  64. description: Metrics for system status properties
  65. type: object
  66. properties:
  67. metric:
  68. title: metric
  69. description: Metrics for system status properties
  70. type: object
  71. properties:
  72. metrics:
  73. title: metricsArray
  74. description: Metrics for system status properties
  75. type: array
  76. items:
  77. type: object
  78. title: metricValue
  79. properties:
  80. value:
  81. type: string
  82. description: System information value
  83. category:
  84. type: string
  85. description: Category of this system information
  86. name:
  87. type: string
  88. description: Name of the metric
  89. available:
  90. type: boolean
  91. description: TRUE if the system information value is available
  92. description:
  93. type: string
  94. description: Description of this system information
  95. unit:
  96. type: string
  97. description: Unit of the system information, can be empty
  98. priority:
  99. type: integer
  100. description: This value can be used to render the metrics in a predefined order
  101. identifier:
  102. type: string
  103. description: Identifies the resource associated with the metric, e.g. file partition name