[egulu CLI reference](../index.md) / [egulu alert-rules](index.md)

# egulu alert-rules create

POST /v1/projects/{project}/locations/{location}/alertRules

```sh
egulu alert-rules create <NAME> [options]
```

## API operation

[AlertRules_create](../../api/observability/AlertRules_create.md): `POST /v1/projects/{project}/locations/{location}/alertRules` (observability module)

## Arguments

| Name | Required | Description |
|---|---|---|
| `NAME` | yes | the alertRuleId |

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--cooldown-seconds` | value | no | cooldownSeconds |
| `--display-name` | value | no | displayName |
| `--for-duration-seconds` | value | no | forDurationSeconds |
| `--location` | value | yes | location |
| `--metric` | value | no | metric |
| `--notification-channels` | value | no | notificationChannels: comma-separated, or @file with one item a line |
| `--project` | value | yes | project |
| `--validate-only` | value | no | validateOnly |

The [global options](../index.md) apply too.
