Skip to content

SnapshotBuilder🔗

Constructor🔗

new SnapshotBuilder()

Methods🔗

build🔗

Builds the object.

build()

dashboard🔗

@param \Grafana\Foundation\Cog\Builder<\Grafana\Foundation\Dashboard\Dashboard> $dashboard

dashboard(\Grafana\Foundation\Cog\Builder $dashboard)

expires🔗

Time when the snapshot expires, default is never to expire

expires(string $expires)

external🔗

Is the snapshot saved in an external grafana instance

external(bool $external)

externalUrl🔗

external url, if snapshot was shared in external grafana instance

externalUrl(string $externalUrl)

id🔗

Unique identifier of the snapshot

id(int $id)

key🔗

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

key(string $key)

name🔗

Optional, name of the snapshot

name(string $name)

orgId🔗

org id of the snapshot

orgId(int $orgId)

originalUrl🔗

original url, url of the dashboard that was snapshotted

originalUrl(string $originalUrl)

url🔗

url of the snapshot, if snapshot was shared internally

url(string $url)

See also🔗