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

# IAlertDataContextValue

- 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 data the alerting dialog loads asynchronously: the supported measures and attributes with their formats, the execution-result readers, and the current user's default recipients.

Changes when an async load resolves, not per keystroke.

**Signature:**

```typescript
export interface IAlertDataContextValue 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [defaultRecipient](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvaluedefaultrecipient) |  | [IAutomationRecipient](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iautomationrecipient/index.md) | **_(BETA)_** The recipient a new alert is seeded with; an external-recipient override replaces the user. |
| [defaultUser](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvaluedefaultuser) |  | [IAutomationRecipient](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iautomationrecipient/index.md) | **_(BETA)_** The logged-in user as a recipient. |
| [getAttributeValues](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvaluegetattributevalues) |  | (attribute: [IAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattribute/index.md)) =&gt; [AttributeValue](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.attributevalue/index.md)[] | **_(BETA)_** Distinct values of an insight attribute in the widget's execution result, by its display form. |
| [getMetricValue](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvaluegetmetricvalue) |  | (measure?: [IMeasure](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.imeasure/index.md), attribute?: [IAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattribute/index.md), value?: string \| null) =&gt; number \| undefined | **_(BETA)_** The measure's current value, optionally sliced by an attribute value; undefined while loading. |
| [isResultLoading](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvalueisresultloading) |  | boolean | **_(BETA)_** Whether the widget's execution result is still loading. |
| [measureFormatMap](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvaluemeasureformatmap) |  | [IMeasureFormatMap](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imeasureformatmap/index.md) | **_(BETA)_** Number formats of the insight's measures, by local identifier. |
| [supportedAttributes](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvaluesupportedattributes) |  | [AlertAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.alertattribute/index.md)[] | **_(BETA)_** Attributes of the insight an alert can be sliced by. |
| [supportedMeasures](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertdatacontextvalue/index.md#ialertdatacontextvaluesupportedmeasures) |  | [AlertMetric](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.alertmetric/index.md)[] | **_(BETA)_** Measures of the insight an alert can be built on, with their comparisons. |

## Property details

### IAlertDataContextValue.defaultRecipient

> **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 recipient a new alert is seeded with; an external-recipient override replaces the user.

**Signature:**

```typescript
defaultRecipient: IAutomationRecipient;
```

### IAlertDataContextValue.defaultUser

> **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 logged-in user as a recipient.

**Signature:**

```typescript
defaultUser: IAutomationRecipient;
```

### IAlertDataContextValue.getAttributeValues

> **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).
> 

Distinct values of an insight attribute in the widget's execution result, by its display form.

**Signature:**

```typescript
getAttributeValues: (attribute: IAttribute) => AttributeValue[];
```

### IAlertDataContextValue.getMetricValue

> **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 measure's current value, optionally sliced by an attribute value; undefined while loading.

**Signature:**

```typescript
getMetricValue: (measure?: IMeasure, attribute?: IAttribute, value?: string | null) => number | undefined;
```

### IAlertDataContextValue.isResultLoading

> **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 widget's execution result is still loading.

**Signature:**

```typescript
isResultLoading: boolean;
```

### IAlertDataContextValue.measureFormatMap

> **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).
> 

Number formats of the insight's measures, by local identifier.

**Signature:**

```typescript
measureFormatMap: IMeasureFormatMap;
```

### IAlertDataContextValue.supportedAttributes

> **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).
> 

Attributes of the insight an alert can be sliced by.

**Signature:**

```typescript
supportedAttributes: AlertAttribute[];
```

### IAlertDataContextValue.supportedMeasures

> **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).
> 

Measures of the insight an alert can be built on, with their comparisons.

**Signature:**

```typescript
supportedMeasures: AlertMetric[];
```
