opencost.postman_collection.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {
  2. "info": {
  3. "_postman_id": "bba454a2-641d-4481-9ccd-0395a6054a20",
  4. "name": "opencost",
  5. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6. },
  7. "item": [
  8. {
  9. "name": "namespace costs/day",
  10. "request": {
  11. "method": "GET",
  12. "header": [],
  13. "url": {
  14. "raw": "{{host}}/allocation/compute?aggregate=namespace&window=1d&accumulate=false&step=1d",
  15. "host": [
  16. "{{host}}"
  17. ],
  18. "path": [
  19. "allocation",
  20. "compute"
  21. ],
  22. "query": [
  23. {
  24. "key": "aggregate",
  25. "value": "namespace"
  26. },
  27. {
  28. "key": "window",
  29. "value": "1d"
  30. },
  31. {
  32. "key": "accumulate",
  33. "value": "false"
  34. },
  35. {
  36. "key": "step",
  37. "value": "1d"
  38. }
  39. ]
  40. }
  41. },
  42. "response": []
  43. },
  44. {
  45. "name": "cluster total",
  46. "request": {
  47. "method": "GET",
  48. "header": [],
  49. "url": {
  50. "raw": "{{host}}/allocation/compute?aggregate=cluster&window=lastweek",
  51. "host": [
  52. "{{host}}"
  53. ],
  54. "path": [
  55. "allocation",
  56. "compute"
  57. ],
  58. "query": [
  59. {
  60. "key": "aggregate",
  61. "value": "cluster"
  62. },
  63. {
  64. "key": "window",
  65. "value": "lastweek"
  66. }
  67. ]
  68. }
  69. },
  70. "response": []
  71. },
  72. {
  73. "name": "namespace totals",
  74. "request": {
  75. "method": "GET",
  76. "header": [],
  77. "url": {
  78. "raw": "{{host}}/allocation/compute?aggregate=namespace&window=7d",
  79. "host": [
  80. "{{host}}"
  81. ],
  82. "path": [
  83. "allocation",
  84. "compute"
  85. ],
  86. "query": [
  87. {
  88. "key": "aggregate",
  89. "value": "namespace"
  90. },
  91. {
  92. "key": "window",
  93. "value": "7d"
  94. }
  95. ]
  96. }
  97. },
  98. "response": []
  99. },
  100. {
  101. "name": "pod totals",
  102. "request": {
  103. "method": "GET",
  104. "header": [],
  105. "url": {
  106. "raw": "{{host}}/allocation/compute?aggregate=pod&window=7d",
  107. "host": [
  108. "{{host}}"
  109. ],
  110. "path": [
  111. "allocation",
  112. "compute"
  113. ],
  114. "query": [
  115. {
  116. "key": "aggregate",
  117. "value": "pod"
  118. },
  119. {
  120. "key": "window",
  121. "value": "7d"
  122. }
  123. ]
  124. }
  125. },
  126. "response": []
  127. }
  128. ],
  129. "event": [
  130. {
  131. "listen": "prerequest",
  132. "script": {
  133. "type": "text/javascript",
  134. "exec": [
  135. ""
  136. ]
  137. }
  138. },
  139. {
  140. "listen": "test",
  141. "script": {
  142. "type": "text/javascript",
  143. "exec": [
  144. ""
  145. ]
  146. }
  147. }
  148. ],
  149. "variable": [
  150. {
  151. "key": "host",
  152. "value": "http://localhost:9003",
  153. "type": "default"
  154. }
  155. ]
  156. }