> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplismart.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Alerting

> Read alert channels, rules and presets using the Simplismart Python SDK

Read alert channels, alert rules and alert presets using the `Simplismart` client methods below. These methods are read-only.

### `list_alert_channels`

Lists the alert channels in your organization.

```python theme={null}
from simplismart import Simplismart

client = Simplismart()
channels = client.list_alert_channels()
print(channels)
```

This method takes no parameters.

### `get_alert_channel`

Gets one alert channel by ID.

```python theme={null}
channel = client.get_alert_channel(channel_id="channel-uuid")
```

| Parameter | Type | Description | Required |
| - | - | - | - |
| `channel_id` | `str` | Alert channel ID | Yes |

### `list_alert_rules`

Lists alert rules, optionally filtered by deployment or workspace.

```python theme={null}
rules = client.list_alert_rules(deployment_id="deployment-uuid")
```

| Parameter | Type | Description | Required |
| - | - | - | - |
| `deployment_id` | `str \| None` | Only return rules for this deployment | No |
| `workspace_id` | `str \| None` | Only return rules for this workspace | No |

### `get_alert_rule`

Gets one alert rule by ID.

```python theme={null}
rule = client.get_alert_rule(alert_id="alert-uuid")
```

| Parameter | Type | Description | Required |
| - | - | - | - |
| `alert_id` | `str` | Alert rule ID | Yes |

### `list_alert_presets`

Lists the available alert presets, optionally for a specific deployment.

```python theme={null}
presets = client.list_alert_presets(deployment_id="deployment-uuid")
```

| Parameter | Type | Description | Required |
| - | - | - | - |
| `deployment_id` | `str \| None` | Deployment UUID | No |

### `list_alert_deployments`

Lists the deployments you can set up alerts for.

```python theme={null}
deployments = client.list_alert_deployments()
```

This method takes no parameters.

### `list_alert_rules_by_deployment`

Lists the alert rules for one deployment.

```python theme={null}
rules = client.list_alert_rules_by_deployment(deployment_id="deployment-uuid")
```

| Parameter | Type | Description | Required |
| - | - | - | - |
| `deployment_id` | `str` | Deployment UUID | Yes |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.