DashboardScene: Support panel relative time overrides and timeshift (#62844)

* Things are working

* update

* Added unit tests

* More tests

* minor fix

* Update

* Support hideTimeOverride
This commit is contained in:
Torkel Ödegaard
2023-09-01 10:21:41 +02:00
committed by GitHub
parent 8113707dc8
commit f4c127a1d8
17 changed files with 386 additions and 265 deletions

View File

@@ -523,6 +523,9 @@ type Panel struct {
// Position and dimensions of a panel in the grid
GridPos *GridPos `json:"gridPos,omitempty"`
// Controls if the timeFrom or timeShift overrides are shown in the panel header
HideTimeOverride *bool `json:"hideTimeOverride,omitempty"`
// Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally.
Id *int `json:"id,omitempty"`