widget.ts 400 B

12345678910111213
  1. import { WidgetQueryFixture } from 'sentry-fixture/widgetQuery';
  2. import type {Widget} from 'sentry/views/dashboards/types';
  3. import {DisplayType} from 'sentry/views/dashboards/types';
  4. export function WidgetFixture(params: Partial<Widget> = {}): Widget {
  5. return {
  6. displayType: DisplayType.LINE,
  7. interval: '1d',
  8. queries: [WidgetQueryFixture()],
  9. title: 'Widget',
  10. ...params,
  11. };
  12. }