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

# IAlertFiltersContextValue

- 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 filter and export-parameter model: the current selection, the available filters, the two filter mutators and the staleness flags, plus the automation's execution parameters and their mutators.

Changes when a filter or a parameter is edited.

**Signature:**

```typescript
export interface IAlertFiltersContextValue 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [automationIsValid](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueautomationisvalid) |  | boolean | **_(BETA)_** False when the saved filters or the saved parameters no longer match the dashboard; gates the stale-filters confirmation. |
| [automationParameters](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueautomationparameters) |  | [IAutomationParameter](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationparameter/index.md)[] | **_(BETA)_** The parameter chips to render. Empty when the `enableParameters` feature is off. |
| [availableFilters](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueavailablefilters) |  | [FilterContextItem](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.filtercontextitem/index.md)[] \| undefined | **_(BETA)_** The dashboard filters the alert may use; undefined until resolved. |
| [availableParameters](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueavailableparameters) |  | IAvailableAutomationParameter[] | **_(BETA)_** Workspace parameters addable via the "+" menu. Empty when the feature is off. |
| [dropStaleParameters](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvaluedropstaleparameters) |  | () =&gt; void | **_(BETA)_** Drops stored parameters whose `ref` left the workspace catalog, keeping every other override. |
| [filtersAreStale](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvaluefiltersarestale) |  | boolean | **_(BETA)_** Whether the saved filters alone no longer match the dashboard. |
| [onApplyCurrentFilters](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueonapplycurrentfilters) |  | () =&gt; void | **_(BETA)_** Replaces the selection with the dashboard's current filters (the stale-filters repair). |
| [onFiltersChange](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueonfilterschange) |  | (filters: [FilterContextItem](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.filtercontextitem/index.md)[]) =&gt; void | **_(BETA)_** Replaces the selection with the complete updated array and mirrors it into the draft. |
| [onParameterAdd](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueonparameteradd) |  | (ref: [IdentifierRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.identifierref/index.md)) =&gt; void | **_(BETA)_** Adds a workspace parameter with its default value. |
| [onParameterChange](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueonparameterchange) |  | (ref: [IdentifierRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.identifierref/index.md), value: [ParameterValue](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.parametervalue/index.md)) =&gt; void | **_(BETA)_** Sets a parameter's value. |
| [onParameterDelete](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueonparameterdelete) |  | (ref: [IdentifierRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.identifierref/index.md)) =&gt; void | **_(BETA)_** Removes a parameter override. |
| [selectedFilters](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertfilterscontextvalue/index.md#ialertfilterscontextvalueselectedfilters) |  | [FilterContextItem](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.filtercontextitem/index.md)[] | **_(BETA)_** The filters the alert is saved with. |

## Property details

### IAlertFiltersContextValue.automationIsValid

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

False when the saved filters or the saved parameters no longer match the dashboard; gates the stale-filters confirmation.

**Signature:**

```typescript
automationIsValid: boolean;
```

### IAlertFiltersContextValue.automationParameters

> **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 parameter chips to render. Empty when the `enableParameters` feature is off.

**Signature:**

```typescript
automationParameters: IAutomationParameter[];
```

### IAlertFiltersContextValue.availableFilters

> **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 dashboard filters the alert may use; undefined until resolved.

**Signature:**

```typescript
availableFilters: FilterContextItem[] | undefined;
```

### IAlertFiltersContextValue.availableParameters

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

Workspace parameters addable via the "+" menu. Empty when the feature is off.

**Signature:**

```typescript
availableParameters: IAvailableAutomationParameter[];
```

### IAlertFiltersContextValue.dropStaleParameters

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

Drops stored parameters whose `ref` left the workspace catalog, keeping every other override.

**Signature:**

```typescript
dropStaleParameters: () => void;
```

### IAlertFiltersContextValue.filtersAreStale

> **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 saved filters alone no longer match the dashboard.

**Signature:**

```typescript
filtersAreStale: boolean;
```

### IAlertFiltersContextValue.onApplyCurrentFilters

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

Replaces the selection with the dashboard's current filters (the stale-filters repair).

**Signature:**

```typescript
onApplyCurrentFilters: () => void;
```

### IAlertFiltersContextValue.onFiltersChange

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

Replaces the selection with the complete updated array and mirrors it into the draft.

**Signature:**

```typescript
onFiltersChange: (filters: FilterContextItem[]) => void;
```

### IAlertFiltersContextValue.onParameterAdd

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

Adds a workspace parameter with its default value.

**Signature:**

```typescript
onParameterAdd: (ref: IdentifierRef) => void;
```

### IAlertFiltersContextValue.onParameterChange

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

Sets a parameter's value.

**Signature:**

```typescript
onParameterChange: (ref: IdentifierRef, value: ParameterValue) => void;
```

### IAlertFiltersContextValue.onParameterDelete

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

Removes a parameter override.

**Signature:**

```typescript
onParameterDelete: (ref: IdentifierRef) => void;
```

### IAlertFiltersContextValue.selectedFilters

> **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 filters the alert is saved with.

**Signature:**

```typescript
selectedFilters: FilterContextItem[];
```
