> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IAlertDraftContextValue

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/automations/alerting/state/types.ts

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

The alerting dialog's edit draft: the automation being edited, the baseline it is compared against, and the form-level warning and title-validity flag that move with it.

Changes on every keystroke; consumers re-render by design.

**Signature:**

```typescript
export interface IAlertDraftContextValue 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [editedAutomation](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdraftcontextvalue/index.md#ialertdraftcontextvalueeditedautomation) |  | [IAutomationMetadataObjectDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iautomationmetadataobjectdefinition/index.md) \| undefined | **_(BETA)_** The alert being edited. Undefined only before the state model has seeded it. |
| [isTitleValid](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdraftcontextvalue/index.md#ialertdraftcontextvalueistitlevalid) |  | boolean | **_(BETA)_** Whether the current title passes the length limit. |
| [originalAutomation](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdraftcontextvalue/index.md#ialertdraftcontextvalueoriginalautomation) |  | [IAutomationMetadataObjectDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iautomationmetadataobjectdefinition/index.md) \| undefined | **_(BETA)_** The draft as it was when the dialog opened; the dirty check compares against it. |
| [warningMessage](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdraftcontextvalue/index.md#ialertdraftcontextvaluewarningmessage) |  | string \| undefined | **_(BETA)_** Form-level warning shown below the form, e.g. after switching to a creator-only channel. |

## Property details

### IAlertDraftContextValue.editedAutomation

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

The alert being edited. Undefined only before the state model has seeded it.

**Signature:**

```typescript
editedAutomation: IAutomationMetadataObjectDefinition | undefined;
```

### IAlertDraftContextValue.isTitleValid

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Whether the current title passes the length limit.

**Signature:**

```typescript
isTitleValid: boolean;
```

### IAlertDraftContextValue.originalAutomation

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

The draft as it was when the dialog opened; the dirty check compares against it.

**Signature:**

```typescript
originalAutomation: IAutomationMetadataObjectDefinition | undefined;
```

### IAlertDraftContextValue.warningMessage

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Form-level warning shown below the form, e.g. after switching to a creator-only channel.

**Signature:**

```typescript
warningMessage: string | undefined;
```
