widgetQuery.ts 392 B

12345678910111213
  1. import type {WidgetQuery} from 'sentry/views/dashboards/types';
  2. export function WidgetQueryFixture(params: Partial<WidgetQuery> = {}): WidgetQuery {
  3. return {
  4. name: '',
  5. fields: ['title', 'count()', 'count_unique(user)', 'epm()'],
  6. columns: ['title'],
  7. aggregates: ['count()', 'count_unique(user)', 'epm()'],
  8. conditions: 'tag:value',
  9. orderby: '',
  10. ...params,
  11. };
  12. }