health.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import type {Health} from 'sentry/types/release';
  2. export function HealthFixture(params: Partial<Health> = {}): Health {
  3. return {
  4. totalUsers24h: null,
  5. durationP50: 231,
  6. hasHealthData: true,
  7. sessionsAdoption: 0,
  8. totalProjectSessions24h: 0,
  9. totalProjectUsers24h: 0,
  10. totalSessions24h: 0,
  11. totalSessions: 74949,
  12. totalUsers: 2544,
  13. crashFreeSessions: 99.59839357429719,
  14. sessionsErrored: 301,
  15. crashFreeUsers: 98.07389937106919,
  16. durationP90: 333,
  17. adoption: null,
  18. sessionsCrashed: 301,
  19. stats: {
  20. '24h': [
  21. [1585472400, 0],
  22. [1585476000, 0],
  23. [1585479600, 0],
  24. [1585483200, 0],
  25. [1585486800, 0],
  26. [1585490400, 0],
  27. [1585494000, 0],
  28. [1585497600, 0],
  29. [1585501200, 0],
  30. [1585504800, 0],
  31. [1585508400, 0],
  32. [1585512000, 0],
  33. [1585515600, 0],
  34. [1585519200, 0],
  35. [1585522800, 0],
  36. [1585526400, 0],
  37. [1585530000, 0],
  38. [1585533600, 0],
  39. [1585537200, 0],
  40. [1585540800, 0],
  41. [1585544400, 0],
  42. [1585548000, 0],
  43. [1585551600, 0],
  44. [1585555200, 0],
  45. ],
  46. },
  47. ...params,
  48. };
  49. }