mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Allow multiple series in Predictable CSV Wave testdata scenario Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
17 lines
514 B
TypeScript
17 lines
514 B
TypeScript
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,
|
|
points: [],
|
|
};
|
|
}
|
|
}
|