mocks.ts 407 B

12345678910111213
  1. import { DataSourceSettings } from '@grafana/data';
  2. import { createDatasourceSettings } from '../../../../features/datasources/mocks';
  3. import { PromOptions } from '../types';
  4. export function createDefaultConfigOptions(): DataSourceSettings<PromOptions> {
  5. return createDatasourceSettings<PromOptions>({
  6. timeInterval: '1m',
  7. queryTimeout: '1m',
  8. httpMethod: 'GET',
  9. directUrl: 'url',
  10. });
  11. }