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

***

[Documentation](../../../README) / [@zerotal/notifications](../README) / NotificationSent

# Class: NotificationSent

Defined in: [notifications/src/events.ts:58](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L58)

Emitted after a notification is delivered (or fails) through one channel —
distinct from `MessageSent`, which is mail-specific. One notification dispatched
to N channels fires N of these.

## Constructors

### Constructor

> **new NotificationSent**(`className`, `channel`, `notifiable`, `ok`, `durationMs`, `error?`): `NotificationSent`

Defined in: [notifications/src/events.ts:59](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L59)

#### Parameters

##### className

`string`

The notification class name, e.g. "OrderShippedNotification".

##### channel

`string`

The channel it went out on: "mail" | "database" | "slack" | "sms" | "broadcast".

##### notifiable

`string`

The recipient identity (email or id).

##### ok

`boolean`

##### durationMs

`number`

##### error?

`string`

#### Returns

`NotificationSent`

## Properties

### className

> `readonly` **className**: `string`

Defined in: [notifications/src/events.ts:61](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L61)

The notification class name, e.g. "OrderShippedNotification".

***

### channel

> `readonly` **channel**: `string`

Defined in: [notifications/src/events.ts:63](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L63)

The channel it went out on: "mail" | "database" | "slack" | "sms" | "broadcast".

***

### notifiable

> `readonly` **notifiable**: `string`

Defined in: [notifications/src/events.ts:65](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L65)

The recipient identity (email or id).

***

### ok

> `readonly` **ok**: `boolean`

Defined in: [notifications/src/events.ts:66](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L66)

***

### durationMs

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

Defined in: [notifications/src/events.ts:67](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L67)

***

### error?

> `readonly` `optional` **error?**: `string`

Defined in: [notifications/src/events.ts:68](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/events.ts#L68)
