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

# AlertingDialogComparisonPeriod()

- 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/AlertingDialogComparisonPeriod.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 comparison-period field ("Compared to": the period a change or difference condition compares against), connected to the dialog's state and rendered as a labelled form row.

Renders [DefaultAlertingDialogComparisonPeriod()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.defaultalertingdialogcomparisonperiod/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 [useAlertingDialogComparisonPeriodProps()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usealertingdialogcomparisonperiodprops/index.md); every prop passed here replaces the hook's value for that prop wholesale. Renders nothing unless the `alert` prop's condition is a change or difference (only those have a comparison period; the gate reads the prop, so an override is honoured), and nothing while `useAlertingDialogContext().isLoading` is true.

**Signature:**

```typescript
export declare function AlertingDialogComparisonPeriod(overrides: Partial<IAlertingDialogComparisonPeriodProps>): ReactElement;
```

## Parameters

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

**Returns:**

ReactElement
