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

# useAlertingDialogContext()

- 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/contexts/AlertingDialogContext.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 alerting create/edit dialog context.

A replacement for `AlertingDialogComponent` renders inside this context and reads the dialog's widget and insight, the dashboard filter context it should apply, the alert being edited, the available notification channels, and the create/save/delete callbacks from here.

Some members exist to wire internal machinery (`executionResultByRef`, `parameterValues`, `dashboardParameters`) and are not intended as a customization surface.

**Signature:**

```typescript
export declare function useAlertingDialogContext(): IAlertingDialogContextValue;
```
**Returns:**

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