sessions.tsx 642 B

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