release.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. },
  28. description: '1.2.0',
  29. package: 'sentry-android-shop',
  30. },
  31. ref: null,
  32. projects: [
  33. {
  34. hasHealthData: true,
  35. healthData: {
  36. totalUsers24h: null,
  37. durationP50: 231,
  38. totalSessions: 74949,
  39. totalUsers: 2544,
  40. crashFreeSessions: 99.59839357429719,
  41. sessionsErrored: 301,
  42. stats: {
  43. '24h': [
  44. [1585472400, 0],
  45. [1585476000, 0],
  46. [1585479600, 0],
  47. [1585483200, 0],
  48. [1585486800, 0],
  49. [1585490400, 0],
  50. [1585494000, 0],
  51. [1585497600, 0],
  52. [1585501200, 0],
  53. [1585504800, 0],
  54. [1585508400, 0],
  55. [1585512000, 0],
  56. [1585515600, 0],
  57. [1585519200, 0],
  58. [1585522800, 0],
  59. [1585526400, 0],
  60. [1585530000, 0],
  61. [1585533600, 0],
  62. [1585537200, 0],
  63. [1585540800, 0],
  64. [1585544400, 0],
  65. [1585548000, 0],
  66. [1585551600, 0],
  67. [1585555200, 0],
  68. ],
  69. },
  70. totalSessions24h: null,
  71. crashFreeUsers: 98.07389937106919,
  72. durationP90: 333,
  73. adoption: null,
  74. sessionsCrashed: 301,
  75. ...healthParams,
  76. },
  77. id: 4383603,
  78. name: 'Sentry-Android-Shop',
  79. slug: 'sentry-android-shop',
  80. platform: 'android',
  81. },
  82. ],
  83. currentProjectMeta: {
  84. nextReleaseVersion: '456',
  85. prevReleaseVersion: '123',
  86. firstReleaseVersion: '0',
  87. lastReleaseVersion: '999',
  88. sessionsUpperBound: null,
  89. sessionsLowerBound: null,
  90. },
  91. adoptionStages: {
  92. 'sentry-android-shop': {
  93. adopted: '2020-03-24T01:02:30Z',
  94. stage: 'replaced',
  95. unadopted: '2020-03-24T02:02:30Z',
  96. },
  97. },
  98. ...params,
  99. };
  100. }