123456789101112131415161718192021222324 |
- import { DataSourceSettings } from '@grafana/data';
- export function createDatasourceSettings<T>(jsonData: T): DataSourceSettings<T> {
- return {
- id: 0,
- uid: 'x',
- orgId: 0,
- name: 'datasource-test',
- typeLogoUrl: '',
- type: 'datasource',
- typeName: 'Datasource',
- access: 'server',
- url: 'http://localhost',
- user: '',
- database: '',
- basicAuth: false,
- basicAuthUser: '',
- isDefault: false,
- jsonData,
- readOnly: false,
- withCredentials: false,
- secureJsonFields: {},
- };
- }
|