testUtils.tsx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import {
  2. SPAN_OP_BREAKDOWN_FIELDS,
  3. SPAN_OP_RELATIVE_BREAKDOWN_FIELD,
  4. } from 'sentry/utils/discover/fields';
  5. export const MOCK_EVENTS_TABLE_DATA = [
  6. {
  7. id: 'deadbeef',
  8. 'user.display': 'uhoh@example.com',
  9. 'transaction.duration': 400,
  10. 'project.id': 1,
  11. timestamp: '2020-05-21T15:31:18+00:00',
  12. trace: '1234',
  13. 'span_ops_breakdown.relative': '',
  14. 'spans.browser': 100,
  15. 'spans.db': 30,
  16. 'spans.http': 170,
  17. 'spans.resource': 100,
  18. 'spans.total.time': 400,
  19. },
  20. {
  21. id: 'moredeadbeef',
  22. 'user.display': 'moreuhoh@example.com',
  23. 'transaction.duration': 600,
  24. 'project.id': 1,
  25. timestamp: '2020-05-22T15:31:18+00:00',
  26. trace: '4321',
  27. 'span_ops_breakdown.relative': '',
  28. 'spans.browser': 100,
  29. 'spans.db': 300,
  30. 'spans.http': 100,
  31. 'spans.resource': 100,
  32. 'spans.total.time': 600,
  33. },
  34. ];
  35. export const EVENTS_TABLE_RESPONSE_FIELDS = [
  36. 'id',
  37. 'user.display',
  38. SPAN_OP_RELATIVE_BREAKDOWN_FIELD,
  39. 'transaction.duration',
  40. 'trace',
  41. 'timestamp',
  42. 'spans.total.time',
  43. ...SPAN_OP_BREAKDOWN_FIELDS,
  44. ];