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

# useAlertingDialogThresholdProps()

- 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/state/useAlertingDialogFieldProps.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 exact props the default alerting dialog renders its threshold field with.

Owns the field's state: its effect auto-computes the threshold of a new alert from the measure's current value and clears it for a relative operator, writing the draft. \*\*Call it once per dialog\*\* — through [AlertingDialogThreshold()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.alertingdialogthreshold/index.md), which is that mount in the default dialog and in a shell of blocks, or directly, never both. Throws outside the alerting dialog's state providers.

**Signature:**

```typescript
export declare function useAlertingDialogThresholdProps(): IAlertingDialogThresholdProps;
```
**Returns:**

[IAlertingDialogThresholdProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialogthresholdprops/index.md)
