Incidents.StatusPageGroup
A Better Stack status page group: keeps related StatusPage pages
together. Status page groups belong to the organization, not to one team;
pages join a group through their statusPageGroupId.
name defaults to a generated unique name; name and sortIndex update
in place (removing sortIndex clears it). organizationId and teamId
replace the group. organizationId is never returned by the API: it is
compared against the previous deploy’s props.
Creating a status page group
Section titled “Creating a status page group”Group a product’s status pages
const pages = yield* BetterStack.Incidents.StatusPageGroup("acme", { name: "Acme Cloud" });yield* BetterStack.Incidents.StatusPage("acme-status", { companyName: "Acme Cloud", subdomain: "acme-cloud-status", timezone: "UTC", statusPageGroupId: pages.id,});name string
Group name. Defaults to a unique name generated from the stack, stage and logical id.
organizationId string
Organization the group belongs to, such as 123. Required when you sign in with OAuth and can access more than one organization. Without it, the group belongs to your token's organization. Not returned in responses.
sortIndex number | null
Display order among the organization's status page groups. Lower values come first. Writes also accept it as position.
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 status_page_group's id.
createdAt string
When the status page group was created.
name string
Group name.
sortIndex number | null
Display order among the organization's status page groups. Lower values come first. Writes also accept it as position.
updatedAt string
When the status page group was last updated.
Lookup
Section titled “Lookup”StatusPageGroup.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 whose token selects the organization, such as t123. Defaults to the credentials' team.