mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* initial implementation of csv support for test data source * CSV file & content scenarios working * Removing categorical data * fixing handler names * Update pkg/tsdb/testdatasource/csv_data.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update pkg/tsdb/testdatasource/csv_data.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update pkg/tsdb/testdatasource/csv_data.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update pkg/tsdb/testdatasource/csv_data.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update pkg/tsdb/testdatasource/csv_data.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update pkg/tsdb/testdatasource/csv_data.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Update pkg/tsdb/testdatasource/csv_data.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> * Fixed lint issues * updated so it uses the same parsing * more CSV tests * lint fixes * more lint * lint * support time field * migrate manual entry to csv * more test output * more test output * missing file Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
16 lines
496 B
TypeScript
16 lines
496 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,
|
|
};
|
|
}
|
|
}
|