release.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. export function Release(params, healthParams) {
  2. return {
  3. dateReleased: null,
  4. newGroups: 0,
  5. commitCount: 0,
  6. url: null,
  7. data: {},
  8. lastDeploy: null,
  9. deployCount: 0,
  10. dateCreated: '2020-03-23T01:02:30Z',
  11. lastEvent: '2020-03-24T02:04:50Z',
  12. version: 'sentry-android-shop@1.2.0',
  13. firstEvent: null,
  14. lastCommit: null,
  15. shortVersion: 'sentry-android-shop@1.2.0',
  16. authors: [],
  17. owner: null,
  18. versionInfo: {
  19. buildHash: null,
  20. version: {
  21. pre: null,
  22. raw: '1.2.0',
  23. major: 1,
  24. minor: 2,
  25. buildCode: null,
  26. patch: 0,
  27. components: 3,
  28. },
  29. description: '1.2.0',
  30. package: 'sentry-android-shop',
  31. },
  32. ref: null,
  33. projects: [
  34. {
  35. hasHealthData: true,
  36. healthData: {
  37. totalUsers24h: null,
  38. durationP50: 231,
  39. totalSessions: 74949,
  40. totalUsers: 2544,
  41. crashFreeSessions: 99.59839357429719,
  42. sessionsErrored: 301,
  43. stats: {
  44. '24h': [
  45. [1585472400, 0],
  46. [1585476000, 0],
  47. [1585479600, 0],
  48. [1585483200, 0],
  49. [1585486800, 0],
  50. [1585490400, 0],
  51. [1585494000, 0],
  52. [1585497600, 0],
  53. [1585501200, 0],
  54. [1585504800, 0],
  55. [1585508400, 0],
  56. [1585512000, 0],
  57. [1585515600, 0],
  58. [1585519200, 0],
  59. [1585522800, 0],
  60. [1585526400, 0],
  61. [1585530000, 0],
  62. [1585533600, 0],
  63. [1585537200, 0],
  64. [1585540800, 0],
  65. [1585544400, 0],
  66. [1585548000, 0],
  67. [1585551600, 0],
  68. [1585555200, 0],
  69. ],
  70. },
  71. totalSessions24h: null,
  72. crashFreeUsers: 98.07389937106919,
  73. durationP90: 333,
  74. adoption: null,
  75. sessionsCrashed: 301,
  76. ...healthParams,
  77. },
  78. id: 4383603,
  79. name: 'Sentry-Android-Shop',
  80. slug: 'sentry-android-shop',
  81. platform: 'android',
  82. },
  83. ],
  84. currentProjectMeta: {
  85. nextReleaseVersion: '456',
  86. prevReleaseVersion: '123',
  87. firstReleaseVersion: '0',
  88. lastReleaseVersion: '999',
  89. sessionsUpperBound: null,
  90. sessionsLowerBound: null,
  91. },
  92. adoptionStages: {
  93. 'sentry-android-shop': {
  94. adopted: '2020-03-24T01:02:30Z',
  95. stage: 'replaced',
  96. unadopted: '2020-03-24T02:02:30Z',
  97. },
  98. },
  99. ...params,
  100. };
  101. }