mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
32 lines
734 B
TypeScript
32 lines
734 B
TypeScript
import { DataQueryRequest } from '@grafana/data';
|
|
|
|
import { CloudWatchQuery, CloudWatchLogsQuery } from '../types';
|
|
|
|
import { TimeRangeMock } from './timeRange';
|
|
|
|
export const RequestMock: DataQueryRequest<CloudWatchQuery> = {
|
|
range: TimeRangeMock,
|
|
rangeRaw: { from: TimeRangeMock.from, to: TimeRangeMock.to },
|
|
targets: [],
|
|
requestId: '',
|
|
interval: '',
|
|
intervalMs: 0,
|
|
scopedVars: {},
|
|
timezone: '',
|
|
app: '',
|
|
startTime: 0,
|
|
};
|
|
|
|
export const LogsRequestMock: DataQueryRequest<CloudWatchLogsQuery> = {
|
|
range: TimeRangeMock,
|
|
rangeRaw: { from: TimeRangeMock.from, to: TimeRangeMock.to },
|
|
targets: [],
|
|
requestId: '',
|
|
interval: '',
|
|
intervalMs: 0,
|
|
scopedVars: {},
|
|
timezone: '',
|
|
app: '',
|
|
startTime: 0,
|
|
};
|