Telemetry.DashboardSection
A full-width section divider that groups the charts below it on a
Dashboard, optionally collapsed. A chart joins a section by its
position (y below the section’s), or on create by the section’s name
(DashboardChart’s section).
dashboardId replaces the section when changed; everything else updates
in place. Without y the section goes below everything else. When y
moves the section onto a chart, the dashboard rearranges its layout
shortly after, so the section’s live y can differ from the one sent.
Removing name or explanation from the config clears it.
Sections on a dashboard
Section titled “Sections on a dashboard”An errors section and a collapsed one
const app = yield* BetterStack.Telemetry.Dashboard("app", { name: "Production app" });yield* BetterStack.Telemetry.DashboardSection("errors", { dashboardId: app.id, name: "Errors", y: 10,});yield* BetterStack.Telemetry.DashboardSection("jobs", { dashboardId: app.id, name: "Background jobs", collapsed: true,});dashboardId string required
name string | null required
Section name.
collapsed boolean
Whether the section starts collapsed.
explanation string | null
Explanation of what the section groups.
teamId string
Team that owns the resource, such as t123. Defaults to the credentials' team (BETTERSTACK_TEAM_ID, or the profile's team). Changing it replaces the resource.
y number
Vertical position on the dashboard grid, from 0 at the top. When an update moves the section onto a chart, the dashboard rearranges its layout shortly after so nothing overlaps. Defaults to just below the last section or chart.
Attributes
Section titled “Attributes”dashboardId string always set
The dashboard the section is on.
id string always set
The dashboard_section's id.
collapsed boolean
Whether the section starts collapsed.
explanation string | null
Explanation of what the section groups.
name string | null
Section name.
teamId string
Team that owns the section's dashboard, such as t123.
y number
Vertical position on the dashboard grid, from 0 at the top. When an update moves the section onto a chart, the dashboard rearranges its layout shortly after so nothing overlaps.
Lookup
Section titled “Lookup”DashboardSection.lookup(props) reads an object this stack does not manage. It is never created, updated or deleted.
dashboardId string required
The dashboard it is on.
teamId string
Team that owns the dashboard, such as t123. Defaults to the credentials' team.