Documentation / zerotal / index / AppBooted
Class: AppBooted
Defined in: packages/core/src/events/FrameworkEvents.ts:155
Emitted once when the application finishes booting — all providers registered
and booted and conventions wired. durationMs is the wall-clock boot time, so
observers (Health page, telemetry, logger) can surface startup cost.
Example
FrameworkEvents.on(AppBooted, (e) => {
console.log(`booted in ${e.durationMs}ms (${e.providerCount} providers)`);
});
Constructors
Constructor
new AppBooted(
durationMs,environment,providerCount):AppBooted
Defined in: packages/core/src/events/FrameworkEvents.ts:156
Parameters
durationMs
number
environment
string
Application environment, e.g. "web" | "worker" | "console" | "test" | "repl".
providerCount
number
Number of active service providers that booted.
Returns
AppBooted
Properties
durationMs
readonlydurationMs:number
Defined in: packages/core/src/events/FrameworkEvents.ts:157
environment
readonlyenvironment:string
Defined in: packages/core/src/events/FrameworkEvents.ts:159
Application environment, e.g. "web" | "worker" | "console" | "test" | "repl".
providerCount
readonlyproviderCount:number
Defined in: packages/core/src/events/FrameworkEvents.ts:161
Number of active service providers that booted.