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

# AlertingDialogGranularity()

- 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/AlertingDialogGranularity.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 granularity field (the period anomaly detection evaluates over), connected to the dialog's state and rendered as a labelled form row.

Renders [DefaultAlertingDialogGranularity()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.defaultalertingdialoggranularity/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 [useAlertingDialogGranularityProps()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usealertingdialoggranularityprops/index.md); every prop passed here replaces the hook's value for that prop wholesale. Renders nothing unless the draft uses anomaly detection, and nothing while `useAlertingDialogContext().isLoading` is true.

**Signature:**

```typescript
export declare function AlertingDialogGranularity(overrides: Partial<IAlertingDialogGranularityProps>): ReactElement;
```

## Parameters

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

**Returns:**

ReactElement
