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

# egulu alert-rules update

PATCH /v1/projects/{project}/locations/{location}/alertRules/{alertRule}

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

## API operation

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

## Arguments

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

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--location` | value | yes | location |
| `--metric` | value | no | metric |
| `--project` | value | yes | project |
| `--update-mask` | value | no | updateMask |

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