Skip to content
betterstack-alchemyUnofficial

Incidents.HeartbeatGroup

Kind ResourceType id BetterStack.Incidents.HeartbeatGroupSource src/Incidents/HeartbeatGroup.tsLive test available A live lifecycle test exists: it runs against the offline mock by default and against the real API under bun run test:live. This records that the test exists, not a dated live run (see Compatibility). Test file: test/Incidents/HeartbeatGroup.test.ts.

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.

Group the nightly jobs

const jobs = yield* BetterStack.Incidents.HeartbeatGroup("jobs", { name: "Nightly jobs" });

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.

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.

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.