mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
refactor: move timeInfo to DataRequestInfo (#16664)
* use timeInfo from request * move timeInfo to DataRequestInfo
This commit is contained in:
@@ -223,7 +223,7 @@ export interface ScopedVars {
|
||||
export interface DataQueryOptions<TQuery extends DataQuery = DataQuery> {
|
||||
timezone: string;
|
||||
range: TimeRange;
|
||||
rangeRaw: RawTimeRange;
|
||||
rangeRaw: RawTimeRange; // Duplicate of results in range. will be deprecated eventually
|
||||
targets: TQuery[];
|
||||
panelId: number;
|
||||
dashboardId: number;
|
||||
@@ -238,6 +238,7 @@ export interface DataQueryOptions<TQuery extends DataQuery = DataQuery> {
|
||||
* Timestamps when the query starts and stops
|
||||
*/
|
||||
export interface DataRequestInfo extends DataQueryOptions {
|
||||
timeInfo?: string; // The query time description (blue text in the upper right)
|
||||
startTime: number;
|
||||
endTime?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user