Incidents.HeartbeatGroup
A Better Stack Uptime heartbeat group: organizes related heartbeats, and
pauses or resumes all of them at once with paused. Heartbeats join it
through their heartbeatGroupId.
name defaults to a generated unique name. paused can only be set by an
update, so a group created with paused: true is paused right after create.
teamId replaces the group when changed.
Creating a heartbeat group
Section titled “Creating a heartbeat group”Group the nightly jobs
const jobs = yield* BetterStack.Incidents.HeartbeatGroup("jobs", { name: "Nightly jobs" });Pausing every heartbeat in a group
Section titled “Pausing every heartbeat in a group”Maintenance
yield* BetterStack.Incidents.HeartbeatGroup("jobs", { name: "Nightly jobs", paused: true });name string
Group name. Defaults to a unique name generated from the stack, stage and logical id.
paused boolean
Whether every heartbeat in the group is paused, false when the group has none. Send true to pause every heartbeat in the group or false to resume them. Accepted on create, but has no effect there.
sortIndex number | null
The position of the group in your list of heartbeat groups, lower values first. null when no position was set.
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.
Attributes
Section titled “Attributes”id string always set
The heartbeat_group's id.
createdAt string
When the group was created.
name string
Group name.
paused boolean
Whether every heartbeat in the group is paused, false when the group has none.
sortIndex number | null
The position of the group in your list of heartbeat groups, lower values first. null when no position was set.
teamId string
Team that owns this heartbeat group, such as t123.
teamName string
Name of the team that owns this heartbeat group.
updatedAt string
When the group was last updated.
Lookup
Section titled “Lookup”HeartbeatGroup.lookup(props) reads an object this stack does not manage. It is never created, updated or deleted.
id string required
The group's id.
teamId string
Team that owns it, such as t123. Defaults to the credentials' team.