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

# IAlertingDialogGranularityProps

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/automations/alerting/types.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).
> 

Props of the default alerting dialog's granularity field (anomaly detection).

**Signature:**

```typescript
export interface IAlertingDialogGranularityProps 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [allowHourlyRecurrence](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialoggranularityprops/index.md#ialertingdialoggranularitypropsallowhourlyrecurrence) |  | boolean | **_(BETA)_** Offers the `"HOUR"` granularity. |
| [closeOnParentScroll?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialoggranularityprops/index.md#ialertingdialoggranularitypropscloseonparentscroll) |  | boolean | **_(BETA)_** _(Optional)_ Closes the dropdown when an ancestor scrolls; the default dialog sets it. |
| [id](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialoggranularityprops/index.md#ialertingdialoggranularitypropsid) |  | string | **_(BETA)_** Id of the dropdown button; the form row's label points at it. |
| [onGranularityChange](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialoggranularityprops/index.md#ialertingdialoggranularitypropsongranularitychange) |  | (granularity: [IAlertAnomalyDetectionGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ialertanomalydetectiongranularity/index.md)) =&gt; void | **_(BETA)_** Called with the picked granularity. |
| [overlayPositionType?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialoggranularityprops/index.md#ialertingdialoggranularitypropsoverlaypositiontype) |  | OverlayPositionType | **_(BETA)_** _(Optional)_ Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`. |
| [selectedGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialoggranularityprops/index.md#ialertingdialoggranularitypropsselectedgranularity) |  | [IAlertAnomalyDetectionGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ialertanomalydetectiongranularity/index.md) \| undefined | **_(BETA)_** The anomaly-detection granularity; undefined renders as `"WEEK"`. |

## Property details

### IAlertingDialogGranularityProps.allowHourlyRecurrence

> **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).
> 

Offers the `"HOUR"` granularity.

**Signature:**

```typescript
allowHourlyRecurrence: boolean;
```

### IAlertingDialogGranularityProps.closeOnParentScroll

> **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).
> 

Closes the dropdown when an ancestor scrolls; the default dialog sets it.

**Signature:**

```typescript
closeOnParentScroll?: boolean;
```

### IAlertingDialogGranularityProps.id

> **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).
> 

Id of the dropdown button; the form row's label points at it.

**Signature:**

```typescript
id: string;
```

### IAlertingDialogGranularityProps.onGranularityChange

> **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).
> 

Called with the picked granularity.

**Signature:**

```typescript
onGranularityChange: (granularity: IAlertAnomalyDetectionGranularity) => void;
```

### IAlertingDialogGranularityProps.overlayPositionType

> **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).
> 

Positioning of the dropdown overlay; the default dialog uses `"sameAsTarget"`.

**Signature:**

```typescript
overlayPositionType?: OverlayPositionType;
```

### IAlertingDialogGranularityProps.selectedGranularity

> **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 anomaly-detection granularity; undefined renders as `"WEEK"`.

**Signature:**

```typescript
selectedGranularity: IAlertAnomalyDetectionGranularity | undefined;
```
