# AlertState

Canonical page: https://www.adaptabletools.com/docs/reference/alertstate

Alert section of Adaptable State, including Initial State.

Each definition fires when its condition is met. A rule-based alert sets `Scope` and `Rule`. A row-change alert sets `RowChangeTrigger` (`'Added'` or `'Removed'`). A scheduled alert sets `Schedule` and has no rule. `MessageType` sets the colour and icon. `MessageHeader` is the title and `MessageText` is the body.

```ts title="TypeScript"
export interface AlertState extends BaseState 
```

###### Extends

[`BaseState`](https://www.adaptabletools.com/docs/reference/basestate.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [AlertDefinitions](https://www.adaptabletools.com/docs/reference/alertstate.md#alertdefinitions) | [`AlertDefinition`](https://www.adaptabletools.com/docs/reference/alertdefinition.md)`[]` | Alerts to evaluate. Each one is a rule-based alert (`Scope` + `Rule`), a row-change alert (`RowChangeTrigger`), or a scheduled alert (`Schedule`). |

## Property Details

### AlertDefinitions

Alerts to evaluate. Each one is a rule-based alert (`Scope` + `Rule`), a row-change alert (`RowChangeTrigger`), or a scheduled alert (`Schedule`).

```ts title="TypeScript"
AlertDefinitions?: AlertDefinition[];
```

###### Property Value

[`AlertDefinition`](https://www.adaptabletools.com/docs/reference/alertdefinition.md)`[]`
