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

# useAlertSelectedValues()

- 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/useAlertSelectedValues.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).
> 

Reads the currently-selected form values for the alerting dialog.

Derived per consumer rather than published on a context: the returned objects flow into `useCallback` dependency arrays and `useAlertThreshold` arguments, so recomputing them every render is what keeps those consumers behaving correctly.

**Signature:**

```typescript
export declare function useAlertSelectedValues(): IAlertSelectedValues;
```
**Returns:**

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