sessions.tsx 688 B

12345678910111213141516171819202122232425262728293031323334
  1. import type {
  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. | 'crash_rate'
  20. | 'crash_free_rate'
  21. | 'count_abnormal'
  22. | 'count_errored'
  23. | 'count_healthy'
  24. | 'count_crashed'
  25. | 'anr_rate'
  26. | 'foreground_anr_rate';
  27. export type SessionAggregationColumn = {
  28. outputType: AggregationOutputType | null;
  29. parameters: Readonly<AggregateParameter[]>;
  30. };