grafana/public/app/plugins/datasource/testdata/constants.ts
Will Browne 42732539ed
TestData: Introduce schema types (#62130)
* 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>
2023-01-26 15:31:34 +00:00

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: '',
};