issue-details.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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 `\"archive\"`."
  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. "description": "In case this API call is invoked with a user context this allows the user to subscribe to workflow notications for this issue."
  232. },
  233. "isPublic": {
  234. "type": "boolean",
  235. "description": "Sets the issue to public or private."
  236. }
  237. }
  238. },
  239. "example": {
  240. "status": "unresolved"
  241. }
  242. }
  243. },
  244. "required": true
  245. },
  246. "responses": {
  247. "200": {
  248. "description": "Success",
  249. "content": {
  250. "application/json": {
  251. "schema": {
  252. "$ref": "../../components/schemas/issue.json#/IssueNoStats"
  253. },
  254. "example": {
  255. "annotations": [],
  256. "assignedTo": null,
  257. "count": "1",
  258. "culprit": "raven.scripts.runner in main",
  259. "firstSeen": "2018-11-06T21:19:55Z",
  260. "hasSeen": false,
  261. "id": "1",
  262. "isBookmarked": false,
  263. "isPublic": false,
  264. "isSubscribed": true,
  265. "lastSeen": "2018-11-06T21:19:55Z",
  266. "level": "error",
  267. "logger": null,
  268. "metadata": {
  269. "title": "This is an example Python exception"
  270. },
  271. "numComments": 0,
  272. "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/",
  273. "project": {
  274. "id": "2",
  275. "name": "Pump Station",
  276. "slug": "pump-station"
  277. },
  278. "shareId": null,
  279. "shortId": "PUMP-STATION-1",
  280. "status": "unresolved",
  281. "statusDetails": {},
  282. "subscriptionDetails": null,
  283. "title": "This is an example Python exception",
  284. "type": "default",
  285. "userCount": 0
  286. }
  287. }
  288. }
  289. },
  290. "403": {
  291. "description": "Forbidden"
  292. },
  293. "404": {
  294. "description": "The requested resource does not exist"
  295. }
  296. },
  297. "security": [
  298. {
  299. "auth_token": ["event:write"]
  300. }
  301. ]
  302. },
  303. "delete": {
  304. "tags": ["Events"],
  305. "description": "Removes an individual issue.",
  306. "operationId": "Remove an Issue",
  307. "parameters": [
  308. {
  309. "name": "organization_slug",
  310. "in": "path",
  311. "description": "The slug of the organization the issue belongs to.",
  312. "required": true,
  313. "schema": {
  314. "type": "string"
  315. }
  316. },
  317. {
  318. "name": "issue_id",
  319. "in": "path",
  320. "description": "The ID of the issue to delete.",
  321. "required": true,
  322. "schema": {
  323. "type": "string"
  324. }
  325. }
  326. ],
  327. "responses": {
  328. "202": {
  329. "description": "Success"
  330. },
  331. "403": {
  332. "description": "Forbidden"
  333. },
  334. "404": {
  335. "description": "The requested resource does not exist"
  336. }
  337. },
  338. "security": [
  339. {
  340. "auth_token": ["event:admin"]
  341. }
  342. ]
  343. }
  344. }