Skip to content

LibraryPanelBuilder🔗

Constructor🔗

func NewLibraryPanelBuilder() *LibraryPanelBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *LibraryPanelBuilder) Build() (LibraryPanel, error)

Description🔗

Panel description

func (builder *LibraryPanelBuilder) Description(description string) *LibraryPanelBuilder

FolderUid🔗

Folder UID

func (builder *LibraryPanelBuilder) FolderUid(folderUid string) *LibraryPanelBuilder

Meta🔗

Object storage metadata

func (builder *LibraryPanelBuilder) Meta(meta cog.Builder[librarypanel.LibraryElementDTOMeta]) *LibraryPanelBuilder

Model🔗

TODO: should be the same panel schema defined in dashboard

Typescript: Omit;

func (builder *LibraryPanelBuilder) Model(model cog.Builder[librarypanel.LibrarypanelLibraryPanelModel]) *LibraryPanelBuilder

Name🔗

Panel name (also saved in the model)

func (builder *LibraryPanelBuilder) Name(name string) *LibraryPanelBuilder

SchemaVersion🔗

Dashboard version when this was saved (zero if unknown)

func (builder *LibraryPanelBuilder) SchemaVersion(schemaVersion uint16) *LibraryPanelBuilder

Type🔗

The panel type (from inside the model)

func (builder *LibraryPanelBuilder) Type(typeArg string) *LibraryPanelBuilder

Uid🔗

Library element UID

func (builder *LibraryPanelBuilder) Uid(uid string) *LibraryPanelBuilder

Version🔗

panel version, incremented each time the dashboard is updated.

func (builder *LibraryPanelBuilder) Version(version int64) *LibraryPanelBuilder

See also🔗