issue-details.json 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. {
  2. "get": {
  3. "tags": [
  4. "Events"
  5. ],
  6. "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.",
  7. "operationId": "Retrieve an issue",
  8. "parameters": [
  9. {
  10. "name": "issue_id",
  11. "in": "path",
  12. "description": "The ID of the issue to retrieve.",
  13. "required": true,
  14. "schema": {
  15. "type": "string"
  16. }
  17. }
  18. ],
  19. "responses": {
  20. "200": {
  21. "description": "Success.",
  22. "content": {
  23. "application/json": {
  24. "schema": {
  25. "$ref": "../../components/schemas/issue.json#/IssueDetailed"
  26. },
  27. "example": {
  28. "activity": [
  29. {
  30. "data": {},
  31. "dateCreated": "2018-11-06T21:19:55Z",
  32. "id": "0",
  33. "type": "first_seen",
  34. "user": null
  35. }
  36. ],
  37. "annotations": [],
  38. "assignedTo": null,
  39. "count": "1",
  40. "culprit": "raven.scripts.runner in main",
  41. "firstRelease": {
  42. "authors": [],
  43. "commitCount": 0,
  44. "data": {},
  45. "dateCreated": "2018-11-06T21:19:55.146Z",
  46. "dateReleased": null,
  47. "deployCount": 0,
  48. "firstEvent": "2018-11-06T21:19:55.271Z",
  49. "lastCommit": null,
  50. "lastDeploy": null,
  51. "lastEvent": "2018-11-06T21:19:55.271Z",
  52. "newGroups": 0,
  53. "owner": null,
  54. "projects": [
  55. {
  56. "name": "Pump Station",
  57. "slug": "pump-station"
  58. }
  59. ],
  60. "ref": null,
  61. "shortVersion": "1764232",
  62. "url": null,
  63. "version": "17642328ead24b51867165985996d04b29310337"
  64. },
  65. "firstSeen": "2018-11-06T21:19:55Z",
  66. "hasSeen": false,
  67. "id": "1",
  68. "isBookmarked": false,
  69. "isPublic": false,
  70. "isSubscribed": true,
  71. "lastRelease": null,
  72. "lastSeen": "2018-11-06T21:19:55Z",
  73. "level": "error",
  74. "logger": null,
  75. "metadata": {
  76. "title": "This is an example Python exception"
  77. },
  78. "numComments": 0,
  79. "participants": [],
  80. "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/",
  81. "pluginActions": [],
  82. "pluginContexts": [],
  83. "pluginIssues": [],
  84. "project": {
  85. "id": "2",
  86. "name": "Pump Station",
  87. "slug": "pump-station"
  88. },
  89. "seenBy": [],
  90. "shareId": null,
  91. "shortId": "PUMP-STATION-1",
  92. "stats": {
  93. "24h": [
  94. [
  95. 1541451600.0,
  96. 557
  97. ],
  98. [
  99. 1541455200.0,
  100. 473
  101. ],
  102. [
  103. 1541458800.0,
  104. 914
  105. ],
  106. [
  107. 1541462400.0,
  108. 991
  109. ],
  110. [
  111. 1541466000.0,
  112. 925
  113. ],
  114. [
  115. 1541469600.0,
  116. 881
  117. ],
  118. [
  119. 1541473200.0,
  120. 182
  121. ],
  122. [
  123. 1541476800.0,
  124. 490
  125. ],
  126. [
  127. 1541480400.0,
  128. 820
  129. ],
  130. [
  131. 1541484000.0,
  132. 322
  133. ],
  134. [
  135. 1541487600.0,
  136. 836
  137. ],
  138. [
  139. 1541491200.0,
  140. 565
  141. ],
  142. [
  143. 1541494800.0,
  144. 758
  145. ],
  146. [
  147. 1541498400.0,
  148. 880
  149. ],
  150. [
  151. 1541502000.0,
  152. 677
  153. ],
  154. [
  155. 1541505600.0,
  156. 381
  157. ],
  158. [
  159. 1541509200.0,
  160. 814
  161. ],
  162. [
  163. 1541512800.0,
  164. 329
  165. ],
  166. [
  167. 1541516400.0,
  168. 446
  169. ],
  170. [
  171. 1541520000.0,
  172. 731
  173. ],
  174. [
  175. 1541523600.0,
  176. 111
  177. ],
  178. [
  179. 1541527200.0,
  180. 926
  181. ],
  182. [
  183. 1541530800.0,
  184. 772
  185. ],
  186. [
  187. 1541534400.0,
  188. 400
  189. ],
  190. [
  191. 1541538000.0,
  192. 943
  193. ]
  194. ],
  195. "30d": [
  196. [
  197. 1538870400.0,
  198. 565
  199. ],
  200. [
  201. 1538956800.0,
  202. 12862
  203. ],
  204. [
  205. 1539043200.0,
  206. 15617
  207. ],
  208. [
  209. 1539129600.0,
  210. 10809
  211. ],
  212. [
  213. 1539216000.0,
  214. 15065
  215. ],
  216. [
  217. 1539302400.0,
  218. 12927
  219. ],
  220. [
  221. 1539388800.0,
  222. 12994
  223. ],
  224. [
  225. 1539475200.0,
  226. 13139
  227. ],
  228. [
  229. 1539561600.0,
  230. 11838
  231. ],
  232. [
  233. 1539648000.0,
  234. 12088
  235. ],
  236. [
  237. 1539734400.0,
  238. 12338
  239. ],
  240. [
  241. 1539820800.0,
  242. 12768
  243. ],
  244. [
  245. 1539907200.0,
  246. 12816
  247. ],
  248. [
  249. 1539993600.0,
  250. 15356
  251. ],
  252. [
  253. 1540080000.0,
  254. 10910
  255. ],
  256. [
  257. 1540166400.0,
  258. 12306
  259. ],
  260. [
  261. 1540252800.0,
  262. 12912
  263. ],
  264. [
  265. 1540339200.0,
  266. 14700
  267. ],
  268. [
  269. 1540425600.0,
  270. 11890
  271. ],
  272. [
  273. 1540512000.0,
  274. 11684
  275. ],
  276. [
  277. 1540598400.0,
  278. 13510
  279. ],
  280. [
  281. 1540684800.0,
  282. 12625
  283. ],
  284. [
  285. 1540771200.0,
  286. 12811
  287. ],
  288. [
  289. 1540857600.0,
  290. 13180
  291. ],
  292. [
  293. 1540944000.0,
  294. 14651
  295. ],
  296. [
  297. 1541030400.0,
  298. 14161
  299. ],
  300. [
  301. 1541116800.0,
  302. 12612
  303. ],
  304. [
  305. 1541203200.0,
  306. 14316
  307. ],
  308. [
  309. 1541289600.0,
  310. 14742
  311. ],
  312. [
  313. 1541376000.0,
  314. 12505
  315. ],
  316. [
  317. 1541462400.0,
  318. 14180
  319. ]
  320. ]
  321. },
  322. "status": "unresolved",
  323. "statusDetails": {},
  324. "subscriptionDetails": null,
  325. "tags": [],
  326. "title": "This is an example Python exception",
  327. "type": "default",
  328. "userCount": 0,
  329. "userReportCount": 0
  330. }
  331. }
  332. }
  333. },
  334. "403": {
  335. "description": "Forbidden"
  336. }
  337. },
  338. "security": [
  339. {
  340. "auth_token": [
  341. "event:read"
  342. ]
  343. }
  344. ]
  345. },
  346. "put": {
  347. "tags": [
  348. "Events"
  349. ],
  350. "description": "Updates an individual issue's attributes. Only the attributes submitted are modified.",
  351. "operationId": "Update an issue",
  352. "parameters": [
  353. {
  354. "name": "issue_id",
  355. "in": "path",
  356. "description": "The ID of the group to retrieve.",
  357. "required": true,
  358. "schema": {
  359. "type": "string"
  360. }
  361. }
  362. ],
  363. "requestBody": {
  364. "content": {
  365. "application/json": {
  366. "schema": {
  367. "type": "object",
  368. "properties": {
  369. "status": {
  370. "type": "string",
  371. "description": "The new status for the issues. Valid values are `\"resolved\"`, `\"resolvedInNextRelease\"`, `\"unresolved\"`, and `\"ignored\"`.",
  372. "example": "unresolved"
  373. },
  374. "assignedTo": {
  375. "type": "string",
  376. "description": "The actor id (or username) of the user or team that should be assigned to this issue."
  377. },
  378. "hasSeen": {
  379. "type": "boolean",
  380. "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."
  381. },
  382. "isBookmarked": {
  383. "type": "boolean",
  384. "description": "In case this API call is invoked with a user context this allows changing of the bookmark flag."
  385. },
  386. "isSubscribed": {
  387. "type": "boolean"
  388. },
  389. "isPublic": {
  390. "type": "boolean",
  391. "description": "Sets the issue to public or private."
  392. }
  393. }
  394. }
  395. }
  396. },
  397. "required": true
  398. },
  399. "responses": {
  400. "200": {
  401. "description": "Success.",
  402. "content": {
  403. "application/json": {
  404. "schema": {
  405. "$ref": "../../components/schemas/issue.json#/IssueNoStats"
  406. },
  407. "example": {
  408. "annotations": [],
  409. "assignedTo": null,
  410. "count": "1",
  411. "culprit": "raven.scripts.runner in main",
  412. "firstSeen": "2018-11-06T21:19:55Z",
  413. "hasSeen": false,
  414. "id": "1",
  415. "isBookmarked": false,
  416. "isPublic": false,
  417. "isSubscribed": true,
  418. "lastSeen": "2018-11-06T21:19:55Z",
  419. "level": "error",
  420. "logger": null,
  421. "metadata": {
  422. "title": "This is an example Python exception"
  423. },
  424. "numComments": 0,
  425. "permalink": "https://sentry.io/the-interstellar-jurisdiction/pump-station/issues/1/",
  426. "project": {
  427. "id": "2",
  428. "name": "Pump Station",
  429. "slug": "pump-station"
  430. },
  431. "shareId": null,
  432. "shortId": "PUMP-STATION-1",
  433. "status": "unresolved",
  434. "statusDetails": {},
  435. "subscriptionDetails": null,
  436. "title": "This is an example Python exception",
  437. "type": "default",
  438. "userCount": 0
  439. }
  440. }
  441. }
  442. },
  443. "403": {
  444. "description": "Forbidden"
  445. },
  446. "404": {
  447. "description": "The requested resource does not exist"
  448. }
  449. },
  450. "security": [
  451. {
  452. "auth_token": [
  453. "event:write"
  454. ]
  455. }
  456. ]
  457. },
  458. "delete": {
  459. "tags": [
  460. "Events"
  461. ],
  462. "description": "Removes an individual issue.",
  463. "operationId": "Remove an Issue",
  464. "parameters": [
  465. {
  466. "name": "issue_id",
  467. "in": "path",
  468. "description": "The ID of the issue to delete.",
  469. "required": true,
  470. "schema": {
  471. "type": "string"
  472. }
  473. }
  474. ],
  475. "responses": {
  476. "202": {
  477. "description": "Success."
  478. },
  479. "403": {
  480. "description": "Forbidden"
  481. },
  482. "404": {
  483. "description": "The requested resource does not exist"
  484. }
  485. },
  486. "security": [
  487. {
  488. "auth_token": [
  489. "event:admin"
  490. ]
  491. }
  492. ]
  493. }
  494. }