issue-details.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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_id_or_slug",
  9. "in": "path",
  10. "description": "The ID or 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_id_or_slug",
  190. "in": "path",
  191. "description": "The ID or 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. "statusDetails": {
  218. "type": "object",
  219. "description": "Additional details about the status of the issue.",
  220. "properties": {
  221. "inNextRelease": {
  222. "type": "boolean",
  223. "description": "Indicates if the issue is resolved in the next release based on the last seen release of that issue."
  224. },
  225. "inRelease": {
  226. "type": "string",
  227. "description": "The version of the release in which the issue is resolved."
  228. },
  229. "inCommit": {
  230. "type": "string",
  231. "description": "The commit hash in which the issue is resolved."
  232. }
  233. }
  234. },
  235. "assignedTo": {
  236. "type": "string",
  237. "description": "The actor id (or username) of the user or team that should be assigned to this issue."
  238. },
  239. "hasSeen": {
  240. "type": "boolean",
  241. "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."
  242. },
  243. "isBookmarked": {
  244. "type": "boolean",
  245. "description": "In case this API call is invoked with a user context this allows changing of the bookmark flag."
  246. },
  247. "isSubscribed": {
  248. "type": "boolean",
  249. "description": "In case this API call is invoked with a user context this allows the user to subscribe to workflow notications for this issue."
  250. },
  251. "isPublic": {
  252. "type": "boolean",
  253. "description": "Sets the issue to public or private."
  254. }
  255. }
  256. },
  257. "example": {
  258. "status": "unresolved"
  259. }
  260. }
  261. },
  262. "required": true
  263. },
  264. "responses": {
  265. "200": {
  266. "description": "Success",
  267. "content": {
  268. "application/json": {
  269. "schema": {
  270. "$ref": "../../components/schemas/issue.json#/IssueNoStats"
  271. },
  272. "example": {
  273. "annotations": [],
  274. "assignedTo": null,
  275. "count": "1",
  276. "culprit": "raven.scripts.runner in main",
  277. "firstSeen": "2018-11-06T21:19:55Z",
  278. "hasSeen": false,
  279. "id": "1",
  280. "isBookmarked": false,
  281. "isPublic": false,
  282. "isSubscribed": true,
  283. "lastSeen": "2018-11-06T21:19:55Z",
  284. "level": "error",
  285. "logger": null,
  286. "metadata": {
  287. "title": "This is an example Python exception"
  288. },
  289. "numComments": 0,
  290. "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/",
  291. "project": {
  292. "id": "2",
  293. "name": "Pump Station",
  294. "slug": "pump-station"
  295. },
  296. "shareId": null,
  297. "shortId": "PUMP-STATION-1",
  298. "status": "unresolved",
  299. "statusDetails": {},
  300. "subscriptionDetails": null,
  301. "title": "This is an example Python exception",
  302. "type": "default",
  303. "userCount": 0
  304. }
  305. }
  306. }
  307. },
  308. "403": {
  309. "description": "Forbidden"
  310. },
  311. "404": {
  312. "description": "The requested resource does not exist"
  313. }
  314. },
  315. "security": [
  316. {
  317. "auth_token": ["event:write"]
  318. }
  319. ]
  320. },
  321. "delete": {
  322. "tags": ["Events"],
  323. "description": "Removes an individual issue.",
  324. "operationId": "Remove an Issue",
  325. "parameters": [
  326. {
  327. "name": "organization_id_or_slug",
  328. "in": "path",
  329. "description": "The ID or slug of the organization the issue belongs to.",
  330. "required": true,
  331. "schema": {
  332. "type": "string"
  333. }
  334. },
  335. {
  336. "name": "issue_id",
  337. "in": "path",
  338. "description": "The ID of the issue to delete.",
  339. "required": true,
  340. "schema": {
  341. "type": "string"
  342. }
  343. }
  344. ],
  345. "responses": {
  346. "202": {
  347. "description": "Success"
  348. },
  349. "403": {
  350. "description": "Forbidden"
  351. },
  352. "404": {
  353. "description": "The requested resource does not exist"
  354. }
  355. },
  356. "security": [
  357. {
  358. "auth_token": ["event:admin"]
  359. }
  360. ]
  361. }
  362. }