Skip to content
betterstack-alchemyUnofficial

Incidents.SeverityGroup

Kind ResourceType id BetterStack.Incidents.SeverityGroupSource src/Incidents/SeverityGroup.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/SeverityGroup.test.ts.

A Better Stack severity group: keeps related Severity levels together. Severities join it through their severityGroupId.

name defaults to a generated unique name; name and sortIndex update in place (removing sortIndex clears it). teamId replaces the group.

Group the paging severities

const paging = yield* BetterStack.Incidents.SeverityGroup("paging", {
name: "Paging",
sortIndex: 1,
});
yield* BetterStack.Incidents.Severity("critical", {
name: "Critical",
call: true,
push: true,
criticalAlert: true,
severityGroupId: paging.id,
});

name string

Group name. Defaults to a unique name generated from the stack, stage and logical id.

sortIndex number | null

Display order of the group among your severity groups. Lower values come first.

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 severity_group's id.

createdAt string

When the group was created.

name string

Group name.

sortIndex number | null

Display order of the group among your severity groups. Lower values come first.

teamId string

Team that owns this group, such as t123.

teamName string

Name of the team that owns this group.

updatedAt string

When the group was last updated.

SeverityGroup.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.