queryVariableBuilder.ts 404 B

1234567891011
  1. import { DataSourceRef } from '@grafana/data';
  2. import { QueryVariableModel } from 'app/features/variables/types';
  3. import { DatasourceVariableBuilder } from './datasourceVariableBuilder';
  4. export class QueryVariableBuilder<T extends QueryVariableModel> extends DatasourceVariableBuilder<T> {
  5. withDatasource(datasource: DataSourceRef) {
  6. this.variable.datasource = datasource;
  7. return this;
  8. }
  9. }