[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / [index](../README) / AppBooted

# Class: AppBooted

Defined in: [events/FrameworkEvents.ts:155](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/events/FrameworkEvents.ts#L155)

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

```ts
FrameworkEvents.on(AppBooted, (e) => {
  console.log(`booted in ${e.durationMs}ms (${e.providerCount} providers)`);
});
```

## Constructors

### Constructor

> **new AppBooted**(`durationMs`, `environment`, `providerCount`): `AppBooted`

Defined in: [events/FrameworkEvents.ts:156](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/events/FrameworkEvents.ts#L156)

#### 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

> `readonly` **durationMs**: `number`

Defined in: [events/FrameworkEvents.ts:157](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/events/FrameworkEvents.ts#L157)

***

### environment

> `readonly` **environment**: `string`

Defined in: [events/FrameworkEvents.ts:159](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/events/FrameworkEvents.ts#L159)

Application environment, e.g. "web" | "worker" | "console" | "test" | "repl".

***

### providerCount

> `readonly` **providerCount**: `number`

Defined in: [events/FrameworkEvents.ts:161](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/events/FrameworkEvents.ts#L161)

Number of active service providers that booted.
