Monitoring.postman_collection.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. {
  2. "info": {
  3. "_postman_id": "6afa3b46-ad70-402e-91b8-7af768e83b24",
  4. "name": "Monitoring",
  5. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6. },
  7. "item": [
  8. {
  9. "name": "daemon",
  10. "item": []
  11. },
  12. {
  13. "name": "server",
  14. "item": [
  15. {
  16. "name": "/server/ - Get all server configs",
  17. "request": {
  18. "method": "GET",
  19. "header": [],
  20. "url": {
  21. "raw": "http://10.8.0.1:8880/server",
  22. "protocol": "http",
  23. "host": [
  24. "10",
  25. "8",
  26. "0",
  27. "1"
  28. ],
  29. "port": "8880",
  30. "path": [
  31. "server"
  32. ]
  33. }
  34. },
  35. "response": []
  36. },
  37. {
  38. "name": "/server/{:id}/data? - Query Server Data",
  39. "request": {
  40. "method": "GET",
  41. "header": [],
  42. "url": {
  43. "raw": "http://10.8.0.1:8880/server/1/data?type=hdd:/&start=2022-09-26T00:00:00.000%2b0200&end=2022-09-26T23:59:59.999%2b0200",
  44. "protocol": "http",
  45. "host": [
  46. "10",
  47. "8",
  48. "0",
  49. "1"
  50. ],
  51. "port": "8880",
  52. "path": [
  53. "server",
  54. "1",
  55. "data"
  56. ],
  57. "query": [
  58. {
  59. "key": "type",
  60. "value": "hdd:/"
  61. },
  62. {
  63. "key": "start",
  64. "value": "2022-09-26T00:00:00.000%2b0200"
  65. },
  66. {
  67. "key": "end",
  68. "value": "2022-09-26T23:59:59.999%2b0200"
  69. }
  70. ]
  71. }
  72. },
  73. "response": []
  74. },
  75. {
  76. "name": "/server/{:id}/stats? - Query Server Stats",
  77. "request": {
  78. "method": "GET",
  79. "header": [],
  80. "url": {
  81. "raw": "http://10.8.0.1:8880/server/3/stats?type=ram&start=2022-12-28T16:00:00.000Z&end=2022-12-29T15:59:59.999Z",
  82. "protocol": "http",
  83. "host": [
  84. "10",
  85. "8",
  86. "0",
  87. "1"
  88. ],
  89. "port": "8880",
  90. "path": [
  91. "server",
  92. "3",
  93. "stats"
  94. ],
  95. "query": [
  96. {
  97. "key": "type",
  98. "value": "ram"
  99. },
  100. {
  101. "key": "start",
  102. "value": "2022-12-28T16:00:00.000Z"
  103. },
  104. {
  105. "key": "end",
  106. "value": "2022-12-29T15:59:59.999Z"
  107. }
  108. ]
  109. }
  110. },
  111. "response": []
  112. },
  113. {
  114. "name": "/server/{:id}/data/types - Get available Server Data Types",
  115. "request": {
  116. "method": "GET",
  117. "header": [],
  118. "url": {
  119. "raw": "http://10.8.0.1:8880/server/1/data/types",
  120. "protocol": "http",
  121. "host": [
  122. "10",
  123. "8",
  124. "0",
  125. "1"
  126. ],
  127. "port": "8880",
  128. "path": [
  129. "server",
  130. "1",
  131. "data",
  132. "types"
  133. ]
  134. }
  135. },
  136. "response": []
  137. },
  138. {
  139. "name": "/services/{:serverId} - Get Server's Service Checks",
  140. "request": {
  141. "method": "GET",
  142. "header": [],
  143. "url": {
  144. "raw": "http://10.8.0.1:8880/services/2",
  145. "protocol": "http",
  146. "host": [
  147. "10",
  148. "8",
  149. "0",
  150. "1"
  151. ],
  152. "port": "8880",
  153. "path": [
  154. "services",
  155. "2"
  156. ]
  157. }
  158. },
  159. "response": []
  160. },
  161. {
  162. "name": "/services/{:serverId} - Insert/Update Service Checks",
  163. "request": {
  164. "method": "PUT",
  165. "header": [],
  166. "body": {
  167. "mode": "raw",
  168. "raw": "{\r\n \"id\": 3,\r\n \"title\": \"kaytobee.de\",\r\n \"type\": \"http\",\r\n \"serverId\": 2,\r\n \"url\": \"https://kaytobee.de\",\r\n \"active\": true,\r\n \"interval\": 270,\r\n \"timeout\": 10000,\r\n \"notify\": true,\r\n \"notifyThreshold\": 3,\r\n \"checks\": [\r\n \"kaytobee\",\r\n \"kaytobee\\\\.de\",\r\n \"<title>[^<]*(kaytobee)[^<]*</title>\"\r\n ]\r\n}",
  169. "options": {
  170. "raw": {
  171. "language": "json"
  172. }
  173. }
  174. },
  175. "url": {
  176. "raw": "http://10.8.0.1:8880/services/2",
  177. "protocol": "http",
  178. "host": [
  179. "10",
  180. "8",
  181. "0",
  182. "1"
  183. ],
  184. "port": "8880",
  185. "path": [
  186. "services",
  187. "2"
  188. ]
  189. }
  190. },
  191. "response": []
  192. },
  193. {
  194. "name": "/services/{:serverId}/{:serviceId} - Delete a Service Check",
  195. "request": {
  196. "method": "DELETE",
  197. "header": [],
  198. "url": {
  199. "raw": "http://10.8.0.1:8880/services/2/1",
  200. "protocol": "http",
  201. "host": [
  202. "10",
  203. "8",
  204. "0",
  205. "1"
  206. ],
  207. "port": "8880",
  208. "path": [
  209. "services",
  210. "2",
  211. "1"
  212. ]
  213. }
  214. },
  215. "response": []
  216. },
  217. {
  218. "name": "/services/{:serverId}/{:serviceId}/data - Query Service Check Data",
  219. "request": {
  220. "method": "GET",
  221. "header": [],
  222. "url": {
  223. "raw": "http://10.8.0.1:8880/services/2/3/data?start=2022-11-20T00:00:00.000Z&end=2022-11-20T23:59:59.999Z",
  224. "protocol": "http",
  225. "host": [
  226. "10",
  227. "8",
  228. "0",
  229. "1"
  230. ],
  231. "port": "8880",
  232. "path": [
  233. "services",
  234. "2",
  235. "3",
  236. "data"
  237. ],
  238. "query": [
  239. {
  240. "key": "start",
  241. "value": "2022-11-20T00:00:00.000Z"
  242. },
  243. {
  244. "key": "end",
  245. "value": "2022-11-20T23:59:59.999Z"
  246. }
  247. ]
  248. }
  249. },
  250. "response": []
  251. },
  252. {
  253. "name": "/fcm/topics/{:topic} - Send a (Test) Notification to a Topic",
  254. "request": {
  255. "method": "POST",
  256. "header": [],
  257. "body": {
  258. "mode": "raw",
  259. "raw": "{\r\n \"title\": \"HostBBQ Monitoring Notification\",\r\n \"body\": \"First Test from Monitoring Backend via Firebase Admin SDK\"\r\n}",
  260. "options": {
  261. "raw": {
  262. "language": "json"
  263. }
  264. }
  265. },
  266. "url": {
  267. "raw": "http://10.8.0.1:8880/fcm/topics/monitoring-services",
  268. "protocol": "http",
  269. "host": [
  270. "10",
  271. "8",
  272. "0",
  273. "1"
  274. ],
  275. "port": "8880",
  276. "path": [
  277. "fcm",
  278. "topics",
  279. "monitoring-services"
  280. ]
  281. }
  282. },
  283. "response": []
  284. }
  285. ]
  286. }
  287. ]
  288. }