Skip to main content

UsageEventInput

@forge/monorepo


@forge/monorepo / backend/src / UsageEventInput

Type Alias: UsageEventInput

UsageEventInput = Omit<UsageEvent, "id" | "tenantId" | "principalId" | "occurredAt">

Defined in: backend/src/usage/index.ts:80

What a caller supplies. id, tenantId, principalId and occurredAt are the recorder's to stamp.

principalId moved into that set by #175: identity comes from the execution context, so accepting it here would be accepting a claim about whose budget to charge.