widget.tsx 315 B

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