issue-details.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. {
  2. "get": {
  3. "tags": ["Events"],
  4. "description": "Return details on an individual issue. This returns the basic stats for the issue (title, last seen, first seen), some overall numbers (number of comments, user reports) as well as the summarized event data.",
  5. "operationId": "Retrieve an Issue",
  6. "parameters": [
  7. {
  8. "name": "organization_slug",
  9. "in": "path",
  10. "description": "The slug of the organization the issue belongs to.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. },
  16. {
  17. "name": "issue_id",
  18. "in": "path",
  19. "description": "The ID of the issue to retrieve.",
  20. "required": true,
  21. "schema": {
  22. "type": "string"
  23. }
  24. }
  25. ],
  26. "responses": {
  27. "200": {
  28. "description": "Success",
  29. "content": {
  30. "application/json": {
  31. "schema": {
  32. "$ref": "../../components/schemas/issue.json#/IssueDetailed"
  33. },
  34. "example": {
  35. "activity": [
  36. {
  37. "data": {},
  38. "dateCreated": "2018-11-06T21:19:55Z",
  39. "id": "0",
  40. "type": "first_seen",
  41. "user": null
  42. }
  43. ],
  44. "annotations": [],
  45. "assignedTo": null,
  46. "count": "1",
  47. "culprit": "raven.scripts.runner in main",
  48. "firstRelease": {
  49. "authors": [],
  50. "commitCount": 0,
  51. "data": {},
  52. "dateCreated": "2018-11-06T21:19:55.146Z",
  53. "dateReleased": null,
  54. "deployCount": 0,
  55. "firstEvent": "2018-11-06T21:19:55.271Z",
  56. "lastCommit": null,
  57. "lastDeploy": null,
  58. "lastEvent": "2018-11-06T21:19:55.271Z",
  59. "newGroups": 0,
  60. "owner": null,
  61. "projects": [
  62. {
  63. "name": "Pump Station",
  64. "slug": "pump-station"
  65. }
  66. ],
  67. "ref": null,
  68. "shortVersion": "1764232",
  69. "url": null,
  70. "version": "17642328ead24b51867165985996d04b29310337"
  71. },
  72. "firstSeen": "2018-11-06T21:19:55Z",
  73. "hasSeen": false,
  74. "id": "1",
  75. "isBookmarked": false,
  76. "isPublic": false,
  77. "isSubscribed": true,
  78. "lastRelease": null,
  79. "lastSeen": "2018-11-06T21:19:55Z",
  80. "level": "error",
  81. "logger": null,
  82. "metadata": {
  83. "title": "This is an example Python exception"
  84. },
  85. "numComments": 0,
  86. "participants": [],
  87. "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/",
  88. "pluginActions": [],
  89. "pluginContexts": [],
  90. "pluginIssues": [],
  91. "project": {
  92. "id": "2",
  93. "name": "Pump Station",
  94. "slug": "pump-station"
  95. },
  96. "seenBy": [],
  97. "shareId": null,
  98. "shortId": "PUMP-STATION-1",
  99. "stats": {
  100. "24h": [
  101. [1541451600.0, 557],
  102. [1541455200.0, 473],
  103. [1541458800.0, 914],
  104. [1541462400.0, 991],
  105. [1541466000.0, 925],
  106. [1541469600.0, 881],
  107. [1541473200.0, 182],
  108. [1541476800.0, 490],
  109. [1541480400.0, 820],
  110. [1541484000.0, 322],
  111. [1541487600.0, 836],
  112. [1541491200.0, 565],
  113. [1541494800.0, 758],
  114. [1541498400.0, 880],
  115. [1541502000.0, 677],
  116. [1541505600.0, 381],
  117. [1541509200.0, 814],
  118. [1541512800.0, 329],
  119. [1541516400.0, 446],
  120. [1541520000.0, 731],
  121. [1541523600.0, 111],
  122. [1541527200.0, 926],
  123. [1541530800.0, 772],
  124. [1541534400.0, 400],
  125. [1541538000.0, 943]
  126. ],
  127. "30d": [
  128. [1538870400.0, 565],
  129. [1538956800.0, 12862],
  130. [1539043200.0, 15617],
  131. [1539129600.0, 10809],
  132. [1539216000.0, 15065],
  133. [1539302400.0, 12927],
  134. [1539388800.0, 12994],
  135. [1539475200.0, 13139],
  136. [1539561600.0, 11838],
  137. [1539648000.0, 12088],
  138. [1539734400.0, 12338],
  139. [1539820800.0, 12768],
  140. [1539907200.0, 12816],
  141. [1539993600.0, 15356],
  142. [1540080000.0, 10910],
  143. [1540166400.0, 12306],
  144. [1540252800.0, 12912],
  145. [1540339200.0, 14700],
  146. [1540425600.0, 11890],
  147. [1540512000.0, 11684],
  148. [1540598400.0, 13510],
  149. [1540684800.0, 12625],
  150. [1540771200.0, 12811],
  151. [1540857600.0, 13180],
  152. [1540944000.0, 14651],
  153. [1541030400.0, 14161],
  154. [1541116800.0, 12612],
  155. [1541203200.0, 14316],
  156. [1541289600.0, 14742],
  157. [1541376000.0, 12505],
  158. [1541462400.0, 14180]
  159. ]
  160. },
  161. "status": "unresolved",
  162. "statusDetails": {},
  163. "subscriptionDetails": null,
  164. "tags": [],
  165. "title": "This is an example Python exception",
  166. "type": "default",
  167. "userCount": 0,
  168. "userReportCount": 0
  169. }
  170. }
  171. }
  172. },
  173. "403": {
  174. "description": "Forbidden"
  175. }
  176. },
  177. "security": [
  178. {
  179. "auth_token": ["event:read"]
  180. }
  181. ]
  182. },
  183. "put": {
  184. "tags": ["Events"],
  185. "description": "Updates an individual issue's attributes. Only the attributes submitted are modified.",
  186. "operationId": "Update an Issue",
  187. "parameters": [
  188. {
  189. "name": "organization_slug",
  190. "in": "path",
  191. "description": "The slug of the organization the issue belongs to.",
  192. "required": true,
  193. "schema": {
  194. "type": "string"
  195. }
  196. },
  197. {
  198. "name": "issue_id",
  199. "in": "path",
  200. "description": "The ID of the group to retrieve.",
  201. "required": true,
  202. "schema": {
  203. "type": "string"
  204. }
  205. }
  206. ],
  207. "requestBody": {
  208. "content": {
  209. "application/json": {
  210. "schema": {
  211. "type": "object",
  212. "properties": {
  213. "status": {
  214. "type": "string",
  215. "description": "The new status for the issues. Valid values are `\"resolved\"`, `\"resolvedInNextRelease\"`, `\"unresolved\"`, and `\"ignored\"`."
  216. },
  217. "assignedTo": {
  218. "type": "string",
  219. "description": "The actor id (or username) of the user or team that should be assigned to this issue."
  220. },
  221. "hasSeen": {
  222. "type": "boolean",
  223. "description": "In case this API call is invoked with a user context this allows changing of the flag that indicates if the user has seen the event."
  224. },
  225. "isBookmarked": {
  226. "type": "boolean",
  227. "description": "In case this API call is invoked with a user context this allows changing of the bookmark flag."
  228. },
  229. "isSubscribed": {
  230. "type": "boolean"
  231. },
  232. "isPublic": {
  233. "type": "boolean",
  234. "description": "Sets the issue to public or private."
  235. }
  236. }
  237. },
  238. "example": {
  239. "status": "unresolved"
  240. }
  241. }
  242. },
  243. "required": true
  244. },
  245. "responses": {
  246. "200": {
  247. "description": "Success",
  248. "content": {
  249. "application/json": {
  250. "schema": {
  251. "$ref": "../../components/schemas/issue.json#/IssueNoStats"
  252. },
  253. "example": {
  254. "annotations": [],
  255. "assignedTo": null,
  256. "count": "1",
  257. "culprit": "raven.scripts.runner in main",
  258. "firstSeen": "2018-11-06T21:19:55Z",
  259. "hasSeen": false,
  260. "id": "1",
  261. "isBookmarked": false,
  262. "isPublic": false,
  263. "isSubscribed": true,
  264. "lastSeen": "2018-11-06T21:19:55Z",
  265. "level": "error",
  266. "logger": null,
  267. "metadata": {
  268. "title": "This is an example Python exception"
  269. },
  270. "numComments": 0,
  271. "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/",
  272. "project": {
  273. "id": "2",
  274. "name": "Pump Station",
  275. "slug": "pump-station"
  276. },
  277. "shareId": null,
  278. "shortId": "PUMP-STATION-1",
  279. "status": "unresolved",
  280. "statusDetails": {},
  281. "subscriptionDetails": null,
  282. "title": "This is an example Python exception",
  283. "type": "default",
  284. "userCount": 0
  285. }
  286. }
  287. }
  288. },
  289. "403": {
  290. "description": "Forbidden"
  291. },
  292. "404": {
  293. "description": "The requested resource does not exist"
  294. }
  295. },
  296. "security": [
  297. {
  298. "auth_token": ["event:write"]
  299. }
  300. ]
  301. },
  302. "delete": {
  303. "tags": ["Events"],
  304. "description": "Removes an individual issue.",
  305. "operationId": "Remove an Issue",
  306. "parameters": [
  307. {
  308. "name": "organization_slug",
  309. "in": "path",
  310. "description": "The slug of the organization the issue belongs to.",
  311. "required": true,
  312. "schema": {
  313. "type": "string"
  314. }
  315. },
  316. {
  317. "name": "issue_id",
  318. "in": "path",
  319. "description": "The ID of the issue to delete.",
  320. "required": true,
  321. "schema": {
  322. "type": "string"
  323. }
  324. }
  325. ],
  326. "responses": {
  327. "202": {
  328. "description": "Success"
  329. },
  330. "403": {
  331. "description": "Forbidden"
  332. },
  333. "404": {
  334. "description": "The requested resource does not exist"
  335. }
  336. },
  337. "security": [
  338. {
  339. "auth_token": ["event:admin"]
  340. }
  341. ]
  342. }
  343. }