Skip to main content

Subscriptions

Your dashboard, every Monday morning, without anyone opening it. A subscription is a watcher with one shape: a schedule, the condition always, a snapshot of the dashboard, and a notify that attaches it.

In the app​

On a dashboard, click Watch, then Send me this dashboard. Set the schedule and its time zone, choose to capture the dashboard as a PNG or a PDF, and pick the members and the destinations to tell. The view you are on (page, dates, filters) is the view that is captured. Test shows what would be sent, and sends nothing.

With the SDK and MCP​

from vibedasher import Vibedasher
from vibedasher.models import WatcherCreate

client = Vibedasher()
client.watchers.create(WatcherCreate.from_dict({
"name": "Monday board pack",
"triggers": [{"kind": "schedule", "params": {"cron": "0 8 * * 1", "timezone": "Europe/Paris"}}],
"condition": {"kind": "always"},
"actions": [
{"id": "snap", "kind": "snapshot",
"params": {"vizId": 1430, "format": "pdf", "viewState": {"filters": {"region": ["EMEA"]}}}},
{"id": "tell", "kind": "notify",
"params": {"to": [{"member": "usr_1a2b3c"}], "vizId": 1430, "attach": ["snap"]}},
],
}))
await client.watchers.create({
name: 'Monday board pack',
triggers: [{ kind: 'schedule', params: { cron: '0 8 * * 1', timezone: 'Europe/Paris' } }],
condition: { kind: 'always' },
actions: [
{ id: 'snap', kind: 'snapshot', params: { vizId: 1430, format: 'pdf', viewState: { filters: { region: ['EMEA'] } } } },
{ id: 'tell', kind: 'notify', params: { to: [{ member: 'usr_1a2b3c' }], vizId: 1430, attach: ['snap'] } },
],
});

Over MCP: create_watcher with the same fields. list_watchers(viz_id=1430) answers what is watching a dashboard.

From the subscription fields to the watcher fields​

Subscription fieldOn the watcher
crona schedule trigger: cron and an IANA timezone
format (png, pdf)format on the snapshot action
filterStateviewState on the snapshot action: page, date, comparison, filters, selections
recipients, channelto and channels (in_app, email) on the notify action; an outside address is a destination
subjectTemplatemessage on the notify action
isActiveclient.watchers.pause(id) / resume(id)

Limits​

  • The picture shows the owner's rows. A member whose rows of the dashboard's datasets equal the owner's gets the file; any other member gets the message and the link, and opens the dashboard with their own access. A destination gets the picture when the owner may share the dashboard, since everyone there sees what the owner sees.
  • The view is copied when the watcher fires, so editing the watcher never changes a capture already taken. client.watchers.get_firing_file(id, firing_id, "snap") gives a download link to what a firing captured.
  • Filters reach the picture through the address. The @ds controls read viewState (page, date, filters) from the dashboard's address; when the dashboard does not apply one, the capture fails and names it. Test shows the picture before anybody receives it.
  • A schedule runs at most every five minutes, in the time zone you give it.

Reference​