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

# Monitors Service

> Monitors Service API methods in the Galtea SDK

> [!WARNING]
>
> You are reading the docs of Galtea 5.13. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/monitor/service.md).

The Monitors Service in the Galtea SDK allows you to manage [monitors](https://docs.galtea.ai/v5.13/concepts/product/monitor.md) for your products.
This Service is exposed by the `galtea.monitors` object.

> [!NOTE]
>
> Remember that we will be using the `galtea` object. More information [here](https://docs.galtea.ai/v5.13/sdk/api/galtea.md).

## Quick Example

First, initialize the Galtea SDK:

```python theme={"system"}
galtea = Galtea(api_key="YOUR_API_KEY")
```

Create a monitor:

```python theme={"system"}
monitor = galtea.monitors.create(
    name="Production quality monitor",
    product_id=product_id,
    metric_group_ids=[metric_group_id],
    # Optional: watch a single version. Omit to watch every version of the product.
    # version_id="your-version-id",
    sampling_percentage=10,  # score 10% of production sessions (default)
    monthly_credit_cap=5000,  # stop scoring after 5000 credits this month; None means uncapped
    message_conditions=[
        MonitorMessageCondition(count="messages", operator="gt", value=1)
    ],  # the default: skip a session where only the agent spoke once
)
```

List monitors:

```python theme={"system"}
monitors = galtea.monitors.list(
    product_ids=[product_id],
    statuses=["ACTIVE"],
)
```

## Service Methods

* [Create Monitor](https://docs.galtea.ai/v5.13/sdk/api/monitor/create.md)
* [Listing Monitors](https://docs.galtea.ai/v5.13/sdk/api/monitor/list.md)
* [Retrieving Monitor](https://docs.galtea.ai/v5.13/sdk/api/monitor/get.md)
* [Updating Monitor](https://docs.galtea.ai/v5.13/sdk/api/monitor/update.md)
* [Pausing Monitor](https://docs.galtea.ai/v5.13/sdk/api/monitor/pause.md)
* [Resuming Monitor](https://docs.galtea.ai/v5.13/sdk/api/monitor/resume.md)
* [Deleting Monitor](https://docs.galtea.ai/v5.13/sdk/api/monitor/delete.md)

## Related

> [card] [Monitor](https://docs.galtea.ai/v5.13/concepts/product/monitor.md)
>
> An always-on evaluation rule for production sessions


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