Skip to content

SnapshotBuilder🔗

Constructor🔗

func NewSnapshotBuilder() *SnapshotBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *SnapshotBuilder) Build() (Snapshot, error)

Dashboard🔗

func (builder *SnapshotBuilder) Dashboard(dashboard cog.Builder[dashboard.Dashboard]) *SnapshotBuilder

Expires🔗

Time when the snapshot expires, default is never to expire

func (builder *SnapshotBuilder) Expires(expires string) *SnapshotBuilder

External🔗

Is the snapshot saved in an external grafana instance

func (builder *SnapshotBuilder) External(external bool) *SnapshotBuilder

ExternalUrl🔗

external url, if snapshot was shared in external grafana instance

func (builder *SnapshotBuilder) ExternalUrl(externalUrl string) *SnapshotBuilder

Id🔗

Unique identifier of the snapshot

func (builder *SnapshotBuilder) Id(id uint32) *SnapshotBuilder

Key🔗

Optional, defined the unique key of the snapshot, required if external is true

func (builder *SnapshotBuilder) Key(key string) *SnapshotBuilder

Name🔗

Optional, name of the snapshot

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

OrgId🔗

org id of the snapshot

func (builder *SnapshotBuilder) OrgId(orgId uint32) *SnapshotBuilder

OriginalUrl🔗

original url, url of the dashboard that was snapshotted

func (builder *SnapshotBuilder) OriginalUrl(originalUrl string) *SnapshotBuilder

Url🔗

url of the snapshot, if snapshot was shared internally

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

See also🔗