mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelData: Adds timeRange prop to PanelData (#19361)
* Refactor: Adds newTimeRange property to PanelData * Refactor: Handles timeRange prop after requests * Refactor: Makes timeRange mandatory * Refactor: Adds DefaultTimeRange
This commit is contained in:
committed by
Torkel Ödegaard
parent
e35de167f9
commit
889f8e3131
@@ -41,3 +41,9 @@ export interface TimeOptions {
|
||||
export type TimeFragment = string | DateTime;
|
||||
|
||||
export const TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';
|
||||
|
||||
export const DefaultTimeRange: TimeRange = {
|
||||
from: {} as DateTime,
|
||||
to: {} as DateTime,
|
||||
raw: { from: '6h', to: 'now' },
|
||||
};
|
||||
|
Reference in New Issue
Block a user