discover.ts 448 B

123456789101112131415
  1. import type {SavedQuery} from 'sentry/types/organization';
  2. import { SavedQueryDatasets } from 'sentry/utils/discover/types';
  3. export function DiscoverSavedQueryFixture(params = {}): SavedQuery {
  4. return {
  5. id: '1',
  6. name: 'Saved query #1',
  7. dateCreated: '2018-09-24T00:00:00.000Z',
  8. dateUpdated: '2018-09-24T00:00:00.000Z',
  9. fields: ['test'],
  10. version: 2,
  11. queryDataset: SavedQueryDatasets.TRANSACTIONS,
  12. ...params,
  13. };
  14. }