mirror of
https://github.com/grafana/grafana.git
synced 2025-09-27 17:54:07 +08:00

* Remove unused code * More cleaning * Delete more * betterer * Small import fixes * Fix unit test * Fix unit test * uncomment * Remove PromLink component since it was removed from Prometheus data source * Clean the direct/browser access code * Remove directUrl * Big cleaning * unit test fixing * cleaning * fix metric_find_query tests * clean result_transformer tests * betterer * Remove unused type * betterer
15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
import { DataSourceSettings } from '@grafana/data';
|
|
|
|
import { getMockDataSource } from '../../../../features/datasources/__mocks__';
|
|
import { PromOptions } from '../types';
|
|
|
|
export function createDefaultConfigOptions(): DataSourceSettings<PromOptions> {
|
|
return getMockDataSource<PromOptions>({
|
|
jsonData: {
|
|
timeInterval: '1m',
|
|
queryTimeout: '1m',
|
|
httpMethod: 'GET',
|
|
},
|
|
});
|
|
}
|