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

# MONITORS

> Score live deployment traffic and surface recurring failure modes

| Command | Description |
| - | - |
| [`attach`](#attach) | Attach a deployment to a monitor. |
| [`create`](#create) | Create a monitor that scores sampled deployment traffic. |
| [`delete`](#delete) | Permanently delete a monitor. |
| [`detach`](#detach) | Detach a deployment from a monitor. |
| [`failure-modes generate`](#failure-modes-generate) | Run an LLM failure-mode analysis over a deployment target's scored logs. |
| [`failure-modes runs list`](#failure-modes-runs-list) | List past failure-mode analyses of a monitor target's scored logs. |
| [`get`](#get) | Show a monitor's judges, sample rate and watched deployment targets. |
| [`insights`](#insights) | Get per-judge score insights for a deployment target. |
| [`list`](#list) | List the monitors in a project. |
| [`scores`](#scores) | Fetch score detail for the logs a monitor scored. |
| [`update`](#update) | Update a monitor's judges, sample rate, or name (at least one is required). |

***

## ATTACH

Attach a deployment to a monitor.

```bash theme={null}
oumi-cli monitors attach [OPTIONS] {monitor_id} {deployment_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |
| `DEPLOYMENT_ID` | int | ✓ | ID of the deployment (see `oumi-cli deployments list`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |

***

## CREATE

Create a monitor that scores sampled deployment traffic.

```bash theme={null}
oumi-cli monitors create [OPTIONS]
```

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--judge` | int | ✓ | Evaluator ID to judge sampled traffic with, at its latest version (see `oumi-cli evaluators list`); repeat `--judge` to add several. |
| `--sample-rate` | float | ✓ | Fraction of traffic to score, between 0 and 1 (0.1 = 10%). |
| `--display-name` | str | | Human-readable name for the monitor. |

***

## DELETE

Permanently delete a monitor.

```bash theme={null}
oumi-cli monitors delete [OPTIONS] {monitor_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--force` | flag | | Skip the confirmation prompt. Without a TTY or under `--no-input`, this (or `--yes`) is required; otherwise the command exits 2 without changing anything. |
| `--yes` | flag | | Same as `--force`. |

***

## DETACH

Detach a deployment from a monitor.

```bash theme={null}
oumi-cli monitors detach [OPTIONS] {monitor_id} {deployment_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |
| `DEPLOYMENT_ID` | int | ✓ | ID of the deployment (see `oumi-cli deployments list`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--force` | flag | | Skip the confirmation prompt. Without a TTY or under `--no-input`, this (or `--yes`) is required; otherwise the command exits 2 without changing anything. |
| `--yes` | flag | | Same as `--force`. |

***

## FAILURE-MODES GENERATE

Run an LLM failure-mode analysis over a deployment target's scored logs.

```bash theme={null}
oumi-cli monitors failure-modes generate [OPTIONS] {monitor_id} {deployment_id} {target_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |
| `DEPLOYMENT_ID` | int | ✓ | ID of the deployment (see `oumi-cli deployments list`). |
| `TARGET_ID` | int | ✓ | ID of the deployment target (see `oumi-cli deployments targets list <DEPLOYMENT_ID>`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--time-window` | parse\_time\_window | | Analyze the logs scored in the last DURATION instead of an explicit `--start`/`--end`, e.g. '1h', '30m', '7d' (units s, m, h, d). Mutually exclusive with `--start`/`--end`. Defaults to 1 hour when none of `--time-window`/`--start`/`--end` is given. |
| `--end` | parse\_iso\_timestamp | | End of the scored-logs window (inclusive), e.g. 2024-01-01T00:00:00Z (UTC if no offset). Defaults to now. Mutually exclusive with `--time-window`. |
| `--start` | parse\_iso\_timestamp | | Start of the scored-logs window (inclusive), e.g. 2024-01-01T00:00:00Z (UTC if no offset). Defaults to 1 hour before `--end`. Mutually exclusive with `--time-window`. |
| `--display-name` | str | | Display name for the analysis run this creates. |
| `--skip-failure-modes` | flag | | Materialize the evaluation of the window's logs but stop before deriving failure modes from it. Leaves a run `oumi-cli evaluations failure-modes generate` can analyze later. |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--wait` / `--no-wait` | flag | | Wait for the analysis to finish before returning (default); `--no-wait` returns the operation ID immediately. |

***

## FAILURE-MODES RUNS LIST

List past failure-mode analyses of a monitor target's scored logs.

```bash theme={null}
oumi-cli monitors failure-modes runs list [OPTIONS] {monitor_id} {deployment_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |
| `DEPLOYMENT_ID` | int | ✓ | ID of the deployment (see `oumi-cli deployments list`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--limit` | int range | | Maximum number of analysis runs to return (default 100). |
| `--all` | flag | | Return all analysis runs, following pages until none are left (capped by `--max-items`). Cannot be combined with `--limit`. |
| `--max-items` | int range | | Cap on how many analysis runs `--all` returns (default 10000). |

***

## GET

Show a monitor's judges, sample rate and watched deployment targets.

```bash theme={null}
oumi-cli monitors get [OPTIONS] {monitor_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |

***

## INSIGHTS

Get per-judge score insights for a deployment target.

```bash theme={null}
oumi-cli monitors insights [OPTIONS] {monitor_id} {deployment_id} {target_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |
| `DEPLOYMENT_ID` | int | ✓ | ID of the deployment (see `oumi-cli deployments list`). |
| `TARGET_ID` | int | ✓ | ID of the deployment target (see `oumi-cli deployments targets list <DEPLOYMENT_ID>`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--time-window` | parse\_time\_window | | Fetch the last DURATION instead of an explicit `--start`/`--end`, e.g. '1h', '30m', '7d' (units s, m, h, d). Mutually exclusive with `--start`/`--end`. Defaults to 1 hour when none of `--time-window`/`--start`/`--end` is given. |
| `--end` | parse\_iso\_timestamp | | End of the window (inclusive), e.g. 2024-01-01T00:00:00Z (UTC if no offset). Defaults to now. Mutually exclusive with `--time-window`. |
| `--start` | parse\_iso\_timestamp | | Start of the window (inclusive), e.g. 2024-01-01T00:00:00Z (UTC if no offset). Defaults to 1 hour before `--end`. Mutually exclusive with `--time-window`. |

***

## LIST

List the monitors in a project.

```bash theme={null}
oumi-cli monitors list [OPTIONS]
```

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project to list monitors from; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--limit` | int range | | Maximum number of monitors to return (default 100). |
| `--all` | flag | | Return all monitors, following pages until none are left (capped by `--max-items`). Cannot be combined with `--limit`. |
| `--max-items` | int range | | Cap on how many monitors `--all` returns (default 10000). |

***

## SCORES

Fetch score detail for the logs a monitor scored.

```bash theme={null}
oumi-cli monitors scores [OPTIONS] {monitor_id} {deployment_id} {target_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |
| `DEPLOYMENT_ID` | int | ✓ | ID of the deployment (see `oumi-cli deployments list`). |
| `TARGET_ID` | int | ✓ | ID of the deployment target (see `oumi-cli deployments targets list <DEPLOYMENT_ID>`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--time-window` | parse\_time\_window | | Fetch score detail for every log scored in the last DURATION, e.g. '1h', '30m', '7d' (units s, m, h, d). Mutually exclusive with `--start`/`--end` and `--score-log-id`. Defaults to 5 minutes when no id and no window is given. |
| `--end` | parse\_iso\_timestamp | | End of the window (inclusive), e.g. 2024-01-01T00:00:00Z (UTC if no offset). Defaults to now. Mutually exclusive with `--time-window` and `--score-log-id`. |
| `--start` | parse\_iso\_timestamp | | Start of the window (inclusive), e.g. 2024-01-01T00:00:00Z (UTC if no offset). Defaults to 5 minutes before `--end`. Mutually exclusive with `--time-window` and `--score-log-id`. |
| `--score-log-id` | str | | Score log id to fetch detail for; repeat to fetch several -- ids come from the 'Score Log' column of `monitors insights`. Fetched regardless of age; mutually exclusive with `--time-window`/`--start`/`--end`. Default: `[]`. |

***

## UPDATE

Update a monitor's judges, sample rate, or name (at least one is required).

```bash theme={null}
oumi-cli monitors update [OPTIONS] {monitor_id}
```

**Arguments**

| Argument | Type | Required | Description |
| - | - | - | - |
| `MONITOR_ID` | int | ✓ | ID of the monitor (see `oumi-cli monitors list`). |

**Options**

| Option | Type | Required | Description |
| - | - | - | - |
| `--project` | str | | Project that owns the monitor; falls back to OUMI\_PROJECT\_ID or the active profile. |
| `--judge` | int | | Replace the monitor's judges with these evaluator IDs, at their latest versions (see `oumi-cli evaluators list`); repeat `--judge` to give several. |
| `--sample-rate` | float | | Fraction of traffic to score, between 0 and 1 (0.1 = 10%). |
| `--display-name` | str | | Human-readable name for the monitor. |

***


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