You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
496 B
15 lines
496 B
import { StandardVariableQuery, StandardVariableSupport } from '@grafana/data';
|
|
|
|
import { TestDataDataSource } from './datasource';
|
|
import { TestDataQuery } from './types';
|
|
|
|
export class TestDataVariableSupport extends StandardVariableSupport<TestDataDataSource> {
|
|
toDataQuery(query: StandardVariableQuery): TestDataQuery {
|
|
return {
|
|
refId: 'TestDataDataSource-QueryVariable',
|
|
stringInput: query.query,
|
|
scenarioId: 'variables-query',
|
|
csvWave: undefined,
|
|
};
|
|
}
|
|
}
|
|
|