events.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. import {Event} from './event';
  2. export function Events(params = []) {
  3. return [
  4. Event({eventID: '12345', id: '1', message: 'ApiException', groupID: '1'}),
  5. Event({
  6. eventID: '12346',
  7. id: '2',
  8. message: 'TestException',
  9. groupID: '1',
  10. }),
  11. ...params,
  12. ];
  13. }
  14. export function EventsStats(params = {}) {
  15. return {
  16. data: [
  17. [new Date(), [{count: 321}, {count: 79}]],
  18. [new Date(), [{count: 123}]],
  19. ],
  20. ...params,
  21. };
  22. }
  23. export function DetailedEvents() {
  24. return [
  25. {
  26. eventID: '807f0de4d8c246098f21f8e0f1684f3d',
  27. packages: {},
  28. dist: null,
  29. tags: [
  30. {value: 'Chrome 59.0.3071', key: 'browser'},
  31. {value: 'Chrome', key: 'browser.name'},
  32. {value: 'error', key: 'level'},
  33. {value: 'javascript', key: 'logger'},
  34. {value: 'Mac OS X 10.12.5', key: 'os'},
  35. {value: 'Mac OS X', key: 'os.name'},
  36. {value: 'd5241c9d9d2bcda918c7af72f07cea1e39a096ac', key: 'release'},
  37. {
  38. value: 'app/components/assigneeSelector in assignedTo',
  39. key: 'transaction',
  40. },
  41. {
  42. value: 'http://localhost:8000/sentry/internal/issues/227/grouping/',
  43. key: 'url',
  44. },
  45. {value: 'id:1', key: 'user'},
  46. ],
  47. contexts: {
  48. os: {version: '10.12.5', type: 'os', name: 'Mac OS X'},
  49. browser: {version: '59.0.3071', type: 'browser', name: 'Chrome'},
  50. },
  51. dateReceived: '2017-07-26T00:34:20Z',
  52. dateCreated: '2017-07-26T00:34:20Z',
  53. fingerprints: [
  54. '2c4887696f708c476a81ce4e834c4b02',
  55. 'e05da55328a860b21f62e371f0a7507d',
  56. ],
  57. metadata: {
  58. type: 'TypeError',
  59. value: "Cannot read property 'assignedTo' of undefined",
  60. },
  61. groupID: '268',
  62. platform: 'javascript',
  63. errors: [],
  64. user: {ip_address: '127.0.0.1', email: 'billy@sentry.io', id: '1'},
  65. context: {'session:duration': 46363},
  66. entries: [],
  67. title: "TypeError: Cannot read property 'assignedTo' of undefined",
  68. message:
  69. "TypeError Cannot read property 'assignedTo' of undefined app/components/assigneeSelector in assignedTo",
  70. sdk: {
  71. clientIP: '127.0.0.1',
  72. version: '3.16.1',
  73. name: 'raven-js',
  74. upstream: {
  75. url: 'https://docs.sentry.io/clients/javascript/',
  76. isNewer: false,
  77. name: 'raven-js',
  78. },
  79. },
  80. type: 'error',
  81. id: '904',
  82. size: 21896,
  83. },
  84. {
  85. eventID: '807f0de4d8c246098f21f8e0f1684f3d',
  86. packages: {},
  87. dist: null,
  88. tags: [
  89. {value: 'Chrome 59.0.3071', key: 'browser'},
  90. {value: 'Chrome', key: 'browser.name'},
  91. {value: 'error', key: 'level'},
  92. {value: 'javascript', key: 'logger'},
  93. {value: 'Mac OS X 10.12.5', key: 'os'},
  94. {value: 'Mac OS X', key: 'os.name'},
  95. {value: 'd5241c9d9d2bcda918c7af72f07cea1e39a096ac', key: 'release'},
  96. {
  97. value: 'app/components/assigneeSelector in assignedTo',
  98. key: 'transaction',
  99. },
  100. {
  101. value: 'http://localhost:8000/sentry/internal/issues/227/grouping/',
  102. key: 'url',
  103. },
  104. {value: 'id:1', key: 'user'},
  105. ],
  106. contexts: {
  107. os: {version: '10.12.5', type: 'os', name: 'Mac OS X'},
  108. browser: {version: '59.0.3071', type: 'browser', name: 'Chrome'},
  109. },
  110. dateReceived: '2017-07-26T00:34:20Z',
  111. dateCreated: '2017-07-26T00:34:20Z',
  112. fingerprints: [
  113. '2c4887696f708c476a81ce4e834c4b02',
  114. 'e05da55328a860b21f62e371f0a7507d',
  115. ],
  116. metadata: {
  117. type: 'TypeError',
  118. value: "Cannot read property 'assignedTo' of undefined",
  119. },
  120. groupID: '268',
  121. platform: 'javascript',
  122. errors: [],
  123. user: {ip_address: '127.0.0.1', email: 'billy@sentry.io', id: '1'},
  124. context: {'session:duration': 46363},
  125. entries: [],
  126. title: "TypeError: Cannot read property 'assignedTo' of undefined",
  127. message:
  128. "TypeError Cannot read property 'assignedTo' of undefined app/components/assigneeSelector in assignedTo",
  129. sdk: {
  130. clientIP: '127.0.0.1',
  131. version: '3.16.1',
  132. name: 'raven-js',
  133. upstream: {
  134. url: 'https://docs.sentry.io/clients/javascript/',
  135. isNewer: false,
  136. name: 'raven-js',
  137. },
  138. },
  139. type: 'error',
  140. id: '905',
  141. size: 21896,
  142. },
  143. ];
  144. }