Versions in this module Expand all Collapse all v1 v1.0.1 May 5, 2024 Changes in this version + type Builder struct + func New(title string, options ...Option) (Builder, error) + func (builder *Builder) Alerts() []*alert.Alert + func (builder *Builder) Internal() *sdk.Board + func (builder *Builder) MarshalIndentJSON() ([]byte, error) + func (builder *Builder) MarshalJSON() ([]byte, error) + type DashboardLink struct + AsDropdown bool + IncludeTimeRange bool + IncludeVariableValues bool + OpenInNewTab bool + Tags []string + Title string + type ExternalLink struct + Description string + Icon LinkIcon + IncludeTimeRange bool + IncludeVariableValues bool + OpenInNewTab bool + Title string + URL string + type LinkIcon string + const IconBolt + const IconCloud + const IconDashboard + const IconDoc + const IconExternal + const IconInfo + const IconQuestion + type Option func(dashboard *Builder) error + func AutoRefresh(interval string) Option + func DashboardLinks(links ...DashboardLink) Option + func DefaultTooltip() Option + func Editable() Option + func ExternalLinks(links ...ExternalLink) Option + func ID(id uint) Option + func ReadOnly() Option + func Row(title string, options ...row.Option) Option + func SharedCrossHair() Option + func Slug(slug string) Option + func Tags(tags []string) Option + func TagsAnnotation(annotation TagAnnotation) Option + func Time(from, to string) Option + func Timezone(timezone TimezoneOption) Option + func UID(uid string) Option + func VariableAsConst(name string, options ...constant.Option) Option + func VariableAsCustom(name string, options ...custom.Option) Option + func VariableAsDatasource(name string, options ...datasource.Option) Option + func VariableAsInterval(name string, options ...interval.Option) Option + func VariableAsQuery(name string, options ...query.Option) Option + func VariableAsText(name string, options ...text.Option) Option + type TagAnnotation struct + Datasource string + IconColor string + Name string + Tags []string + type TimezoneOption string + const Browser + const DefaultTimezone + const UTC