RowPanel🔗
Row panel
Definition🔗
type RowPanel struct {
// The panel type
Type string `json:"type"`
// Whether this row should be collapsed or not.
Collapsed bool `json:"collapsed"`
// Row title
Title *string `json:"title,omitempty"`
// Name of default datasource for the row
Datasource *dashboard.DataSourceRef `json:"datasource,omitempty"`
// Row grid position
GridPos *dashboard.GridPos `json:"gridPos,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 uint32 `json:"id"`
// List of panels in the row
Panels []dashboard.Panel `json:"panels"`
// Name of template variable to repeat for.
Repeat *string `json:"repeat,omitempty"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode RowPanel
from JSON.
Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …
Equals🔗
Equals tests the equality of two RowPanel
objects.
Validate🔗
Validate checks all the validation constraints that may be defined on RowPanel
fields for violations and returns them.