monitoring.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer monitoring requests
  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. /monitor/requests:
  15. get:
  16. operationId: getMonitorRequests
  17. tags:
  18. - "Monitoring"
  19. summary: Get a list of requests
  20. description: |
  21. Returns a list of all requests known to the monitoring system.
  22. If no list of fields is specified, the full list will be returned, with the exception of Class, Body and Error fields.
  23. The HTML format return a summary of the requests, and links to the single request to gather details.
  24. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/requests.xls" for Excel).
  25. produces:
  26. - application/csv
  27. - application/zip
  28. - application/vnd.ms-excel
  29. - text/html
  30. parameters:
  31. - name: from
  32. in: query
  33. required: false
  34. description: |
  35. Specifies an inclusive lower bound on the timestamp for the start of a request.
  36. The timestamp must be expressed as an ISO can be specified to any desired precision (e..g, "2010-07-23", "2010-07-23T16:16:44")
  37. type: string
  38. - name: to
  39. in: query
  40. required: false
  41. description: |
  42. Specifies an inclusive lower bound on the timestamp for the start of a request.
  43. The timestamp must be expressed as an ISO can be specified to any desired precision (e..g, "2010-07-23", "2010-07-23T16:16:44")
  44. type: string
  45. - name: filter
  46. in: query
  47. required: false
  48. description: |
  49. Specifies generic filter against the available fields, in the form "attributeName:OP:value" where OP can be:
  50. - EQ: equals
  51. - NEQ: not equals
  52. - LT: less than
  53. - LTE: less than or equals
  54. - GT: greater than
  55. - GTE: greater than or equals
  56. - IN: in list ("value" must be a comma separated list of values
  57. type: string
  58. - name: order
  59. in: query
  60. required: false
  61. description: |
  62. Specifies which request attribute to sort by, and optionally specifies the sort direction.
  63. The syntax is "attribute[;ASC|DESC]", where the sorting direction is optional
  64. type: string
  65. - name: offset
  66. in: query
  67. required: false
  68. description: Specifies where in the result set records should be returned from
  69. type: integer
  70. - name: count
  71. in: query
  72. required: false
  73. description: Specifies how many records should be returned.
  74. type: integer
  75. - name: live
  76. in: query
  77. required: false
  78. description: |
  79. Specifies which requests to return based on status. If true, only returns live (RUNNING, WAITING, CANCELLING) requests.
  80. If false, only returns completed (FINISHED, FAILED) requests. If not specified, all requests are returned regardless of status.
  81. type: boolean
  82. - name: fields
  83. in: query
  84. required: false
  85. description: Comma separated list of fields to be returned
  86. type: string
  87. responses:
  88. 200:
  89. description: OK
  90. schema:
  91. $ref: "#/definitions/RequestList"
  92. examples:
  93. application/csv: |
  94. id,path,startTime
  95. 2,/tiger/wms,2017-04-01T11:26:06.011
  96. 3,/tiger/wms,2017-04-01T11:26:06.603
  97. 4,/tiger/wms,2017-04-01T11:26:07.369
  98. 5,/rest/monitor/requests.csv,2017-04-01T11:26:37.919
  99. post:
  100. operationId: postMonitorRequests
  101. tags:
  102. - "Monitoring"
  103. description: Invalid. This resource cannot be modified.
  104. responses:
  105. 405:
  106. description: Method Not Allowed
  107. put:
  108. operationId: putMonitorRequests
  109. tags:
  110. - "Monitoring"
  111. description: Invalid. This resource cannot be modified.
  112. responses:
  113. 405:
  114. description: Method Not Allowed
  115. delete:
  116. operationId: deleteMonitorRequests
  117. tags:
  118. - "Monitoring"
  119. description: Clears all reqests
  120. responses:
  121. 200:
  122. description: OK
  123. /monitor/requests/{request}:
  124. get:
  125. operationId: getMonitorRequest
  126. tags:
  127. - "Monitoring"
  128. summary: Get a list of requests
  129. description: |
  130. Returns a specific request, by identifier
  131. The HTML format returns all details of the request.
  132. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/request/1.xls" for Excel).
  133. produces:
  134. - application/csv
  135. - application/zip
  136. - application/vnd.ms-excel
  137. - text/html
  138. parameters:
  139. - name: request
  140. in: path
  141. required: true
  142. description: The request identifier
  143. type: string
  144. - name: fields
  145. in: query
  146. required: false
  147. description: Comma separated list of fields to be returned
  148. type: string
  149. responses:
  150. 200:
  151. description: OK
  152. schema:
  153. $ref: "#/definitions/Request"
  154. examples:
  155. application/csv: |
  156. Bbox,BodyAsString,BodyContentLength,BodyContentType,Category,EndTime,ErrorMessage,Host,HttpMethod,HttpReferer,Id,InternalHost,Operation,OwsVersion,Path,QueryString,RemoteAddr,RemoteCity,RemoteCountry,RemoteHost,RemoteLat,RemoteLon,RemoteUser,RemoteUserAgent,Resources,ResourcesList,ResponseContentType,ResponseLength,ResponseStatus,Service,StartTime,Status,SubOperation,TotalTime
  157. "ReferencedEnvelope[-180.0 : 180.0, -90.0 : 90.0]",,0,,OWS,2017-04-01T11:26:06.439,,localhost,GET,http://localhost:8080/geoserver/web/wicket/bookmarkable/org.geoserver.web.demo.MapPreviewPage?7,2,hydra,GetMap,1.3.0,/tiger/wms,"service=WMS&version=1.1.0&request=GetMap&layers=tiger:giant_polygon&styles=&bbox=-180.0,-90.0,180.0,90.0&width=768&height=384&srs=EPSG:4326&format=application/openlayers",127.0.0.1,,,localhost,0.0,0.0,admin,"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36",[tiger:giant_polygon],tiger:giant_polygon,"text/html; subtype=openlayers",21997,200,WMS,2017-04-01T11:26:06.011,FINISHED,,428
  158. post:
  159. operationId: postMonitorRequest
  160. tags:
  161. - "Monitoring"
  162. description: This resource cannot be modified
  163. responses:
  164. 405:
  165. description: Method Not Allowed
  166. put:
  167. operationId: putMonitorRequest
  168. tags:
  169. - "Monitoring"
  170. description: This resource cannot be modified
  171. responses:
  172. 405:
  173. description: Method Not Allowed
  174. delete:
  175. operationId: deleteMonitorRequest
  176. tags:
  177. - "Monitoring"
  178. description: Invalid. Cannot delete a specific request
  179. responses:
  180. 405:
  181. description: Method Not Allowed
  182. definitions:
  183. RequestList:
  184. title: requests
  185. type: array
  186. items:
  187. $ref: '#/definitions/Request'
  188. Request:
  189. title: request
  190. type: object
  191. properties:
  192. Bbox:
  193. type: string
  194. description: Requested bounding box
  195. BodyAsString:
  196. type: string
  197. description: Body of the request (for POST/PUT)
  198. BodyContentLength:
  199. type: integer
  200. description: Request body content lenght
  201. BodyContentType:
  202. type: string
  203. description: Request body content type
  204. Category:
  205. type: string
  206. description: Can be OWS or REST
  207. EndTime:
  208. type: string
  209. description: Request completion time
  210. ErrorMessage:
  211. type: string
  212. description: The error message, in case the request failed, empt otherwise
  213. Host:
  214. type: string
  215. description: Host GeoServer is running on
  216. HttpMethod:
  217. type: string
  218. description: HTTP method of the request (e.g., GET, POST, ...)
  219. HttpReferer:
  220. type: string
  221. description: HTTP referrer, if any
  222. Id:
  223. type: string
  224. description: Request identifier
  225. InternalHost:
  226. type: string
  227. description: Name of the host GeoServer is running on
  228. Operation:
  229. type: string
  230. description: OGC operation, e.g. GetMap, GetFeature (available only for OWS requests)
  231. OwsVersion:
  232. type: string
  233. description: OGC protocol version (e.g., 1.1.0, 1.1.3)
  234. Path:
  235. type: string
  236. description: HTTP request path (e.g. "/topp/wms")
  237. QueryString:
  238. type: string
  239. description: The HTTP request query string
  240. RemoteAddr:
  241. type: string
  242. description: Remote request IP address
  243. RemoteCity:
  244. type: string
  245. description: Remote client city (available only if GeoIP lookup is enabled)
  246. RemoteCountry:
  247. type: string
  248. description: Remote client country (available only if GeoIP lookup is enabled)
  249. RemoteHost:
  250. type: string
  251. description: Remote client host
  252. RemoteLat:
  253. type: string
  254. description: Remote client latitude (available only if GeoIP lookup is enabled)
  255. RemoteLon:
  256. type: string
  257. description: Remote client longitude (available only if GeoIP lookup is enabled)
  258. RemoteUser:
  259. type: string
  260. description: User issuing the request
  261. RemoteUserAgent:
  262. type: string
  263. description: Remote client user agent
  264. Resources:
  265. type: string
  266. description: Name of the resources (layers, processes, ...) specified as part of the request
  267. ResourcesList:
  268. type: string
  269. description: Name of the resources (layers, processes, ...) specified as part of the request
  270. ResponseContentType:
  271. type: string
  272. description: Content type of the response
  273. ResponseLength:
  274. type: integer
  275. description: Size of the response in bytes
  276. ResponseStatus:
  277. type: string
  278. description: HTTP status of the response
  279. Service:
  280. type: string
  281. description: OGC service in use (available only for OGC requests)
  282. StartTime:
  283. type: string
  284. description: Request start time
  285. Status:
  286. type: string
  287. description: Status of the request (WAITING, RUNNING, CANCELLING, FAILED, FINISHED, CANCELLED, INTERRUPTED)
  288. SubOperation:
  289. type: string
  290. description: The OGC sub operations, for the cases in which it applies (e.g., for WFS-T it can be Insert/Delete/Update)
  291. TotalTime:
  292. type: integer
  293. description: Total request time in milliseconds