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

# AlertingDialogThreshold()

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

> **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 threshold field (the value a fixed-threshold, change or difference condition is compared against), connected to the dialog's state and rendered as a labelled form row.

Renders [DefaultAlertingDialogThreshold()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.defaultalertingdialogthreshold/index.md) inside [AutomationDialogFormField()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.automationdialogformfield/index.md) with the props of [useAlertingDialogThresholdProps()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usealertingdialogthresholdprops/index.md); every prop passed here replaces the hook's value for that prop wholesale. \*\*The one `useAlertThreshold` mount\*\*: [useAlertingDialogThresholdProps()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usealertingdialogthresholdprops/index.md) owns the field's state and writes the draft (auto-computing a new alert's threshold), so place this block once per dialog and do not also call the hook. Renders nothing while the draft uses anomaly detection (that condition has no threshold); the hook stays mounted behind the gate, so the field's touched state survives a switch to anomaly detection and back. Renders nothing while `useAlertingDialogContext().isLoading` is true.

**Signature:**

```typescript
export declare function AlertingDialogThreshold(overrides: Partial<IAlertingDialogThresholdProps>): ReactElement;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| overrides | Partial&lt;[IAlertingDialogThresholdProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialogthresholdprops/index.md)&gt; |  |

**Returns:**

ReactElement
