mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* schematize data query * add the stuff you dingus * feat(testdatasource): add scenario to generated types * use generated testdata query in frontend * update code owners * Add path exception for testdata datasource * use specific numeric data types * fix test * fix e2e smoketest * add test data query type * use test data query type * fix betterer * Fix typo * move to experimental Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com> Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: sam boyer <sdboyer@grafana.com> Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
22 lines
400 B
TypeScript
22 lines
400 B
TypeScript
import { CSVWave, TestData, TestDataQueryType } from './dataquery.gen';
|
|
|
|
export const defaultPulseQuery: any = {
|
|
timeStep: 60,
|
|
onCount: 3,
|
|
onValue: 2,
|
|
offCount: 3,
|
|
offValue: 1,
|
|
};
|
|
|
|
export const defaultCSVWaveQuery: CSVWave[] = [
|
|
{
|
|
timeStep: 60,
|
|
valuesCSV: '0,0,2,2,1,1',
|
|
},
|
|
];
|
|
|
|
export const defaultQuery: TestData = {
|
|
scenarioId: TestDataQueryType.RandomWalk,
|
|
refId: '',
|
|
};
|