sessions.tsx 702 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import {
  2. AggregateParameter,
  3. AggregationOutputType,
  4. ColumnType,
  5. } from 'sentry/utils/discover/fields';
  6. export type SessionsMeta = {
  7. name: string;
  8. operations: SessionsOperation[];
  9. type: ColumnType;
  10. };
  11. export enum SessionField {
  12. SESSION = 'session',
  13. SESSION_DURATION = 'session.duration',
  14. USER = 'user',
  15. }
  16. export type SessionsOperation =
  17. | 'sum'
  18. | 'count_unique'
  19. | 'avg'
  20. | 'max'
  21. | 'p50'
  22. | 'p75'
  23. | 'p95'
  24. | 'p99'
  25. | 'crash_rate'
  26. | 'crash_free_rate'
  27. | 'count_abnormal'
  28. | 'count_errored'
  29. | 'count_healthy'
  30. | 'count_crashed';
  31. export type SessionAggregationColumn = {
  32. outputType: AggregationOutputType | null;
  33. parameters: Readonly<AggregateParameter[]>;
  34. };