Skip to content

DashboardLinkBuilder🔗

Constructor🔗

func NewDashboardLinkBuilder(title string) *DashboardLinkBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *DashboardLinkBuilder) Build() (DashboardLink, error)

AsDropdown🔗

If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards

func (builder *DashboardLinkBuilder) AsDropdown(asDropdown bool) *DashboardLinkBuilder

Icon🔗

Icon name to be displayed with the link

func (builder *DashboardLinkBuilder) Icon(icon string) *DashboardLinkBuilder

IncludeVars🔗

If true, includes current template variables values in the link as query params

func (builder *DashboardLinkBuilder) IncludeVars(includeVars bool) *DashboardLinkBuilder

KeepTime🔗

If true, includes current time range in the link as query params

func (builder *DashboardLinkBuilder) KeepTime(keepTime bool) *DashboardLinkBuilder

Tags🔗

List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards

func (builder *DashboardLinkBuilder) Tags(tags []string) *DashboardLinkBuilder

TargetBlank🔗

If true, the link will be opened in a new tab

func (builder *DashboardLinkBuilder) TargetBlank(targetBlank bool) *DashboardLinkBuilder

Title🔗

Title to display with the link

func (builder *DashboardLinkBuilder) Title(title string) *DashboardLinkBuilder

Tooltip🔗

Tooltip to display when the user hovers their mouse over it

func (builder *DashboardLinkBuilder) Tooltip(tooltip string) *DashboardLinkBuilder

Type🔗

Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)

func (builder *DashboardLinkBuilder) Type(typeArg dashboard.DashboardLinkType) *DashboardLinkBuilder

Url🔗

Link URL. Only required/valid if the type is link

func (builder *DashboardLinkBuilder) Url(url string) *DashboardLinkBuilder

See also🔗