Skip to content
betterstack-alchemyUnofficial

Errors.ApplicationGroup

Kind ResourceType id BetterStack.Errors.ApplicationGroupSource src/Errors/ApplicationGroup.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/Errors/ApplicationGroup.test.ts.

A Better Stack error-tracking application group: organizes related Applications together. Applications join it through their applicationGroupId.

name defaults to a generated unique name; name and sortIndex update in place (removing sortIndex clears it). teamId replaces the group when changed. An existing group with the same explicit name is adopted with --adopt.

A group with an application in it

const group = yield* BetterStack.Errors.ApplicationGroup("production", {
name: "Production apps",
sortIndex: 1,
});
yield* BetterStack.Errors.Application("api-errors", {
platform: "bun_errors",
applicationGroupId: group.id,
});

Find a group by id

const existing = BetterStack.Errors.ApplicationGroup.lookup({ id: "123" });

Find a group by name (fails with AmbiguousLookup when several share it)

const byName = BetterStack.Errors.ApplicationGroup.lookup({ name: "Backend" });

name string

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

sortIndex number | null

Display order among your application 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 application_group's id.

createdAt string

When the group was created.

name string

Group name.

sortIndex number | null

Display order among your application groups. Lower values come first.

teamId string

Team that owns the group, such as t123.

teamName string

Name of the team that owns the group.

updatedAt string

When the group was last updated.

ApplicationGroup.lookup(props) reads an object this stack does not manage. It is never created, updated or deleted.

teamId string

Team that owns it, such as t123. Defaults to the credentials' team.