Skip to content

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, …

func (rowPanel *RowPanel) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two RowPanel objects.

func (rowPanel *RowPanel) Equals(other RowPanel) bool

Validate🔗

Validate checks all the validation constraints that may be defined on RowPanel fields for violations and returns them.

func (rowPanel *RowPanel) Validate() error

See also🔗