Skip to content

PublicDashboard🔗

Definition🔗

type PublicDashboard struct {
    // Unique public dashboard identifier
    Uid string `json:"uid"`
    // Dashboard unique identifier referenced by this public dashboard
    DashboardUid string `json:"dashboardUid"`
    // Unique public access token
    AccessToken *string `json:"accessToken,omitempty"`
    // Flag that indicates if the public dashboard is enabled
    IsEnabled bool `json:"isEnabled"`
    // Flag that indicates if annotations are enabled
    AnnotationsEnabled bool `json:"annotationsEnabled"`
    // Flag that indicates if the time range picker is enabled
    TimeSelectionEnabled bool `json:"timeSelectionEnabled"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode PublicDashboard 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 (publicDashboard *PublicDashboard) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two PublicDashboard objects.

func (publicDashboard *PublicDashboard) Equals(other PublicDashboard) bool

Validate🔗

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

func (publicDashboard *PublicDashboard) Validate() error

See also🔗