widget.tsx 321 B

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