# Setting up continuous monitoring

It is also worth noting that you can trigger a monitoring run whenever you want (e.g., after adding 1000 observations) by calling the `trigger` method from the [Run](https://nannyml.github.io/nannyml-cloud-sdk/api_reference/monitoring/run/). The previous three steps allow you to monitor an ML on the analysis data previously set. But once new production data is available, you might want to know how your model is performing on it. class.

You can load any previously set model by searching for it by name. Then, it's a matter of loading the new model predictions, adding them to the model using the method `add_analysis_data`, and triggering a new monitoring run.

```python
# Find the previous model in NannyML Cloud by name
model, = nml_sdk.monitoring.Model.list(name='Example model')

# Add new inferences to NannyML Cloud
new_inferences = pd.DataFrame()
nml_sdk.monitoring.Model.add_analysis_data(model['id'], new_inferences)

# Trigger analysis of the new data
nml_sdk.monitoring.Run.trigger(model['id'])
```

`new_inferences` can be a dataset with several new model inferences:

<figure><img src="/files/TqnT9TGALVY3kUJ4cjku" alt=""><figcaption></figcaption></figure>

&#x20;or even a single observation:

<figure><img src="/files/zb4jjlDJrzMkAOAPAKw3" alt=""><figcaption></figcaption></figure>

It is also worth noting that you can trigger a monitoring run whenever you want (e.g., after adding 1000 observations) by calling the `trigger` method from the [Run](https://nannyml.github.io/nannyml-cloud-sdk/api_reference/monitoring/run/) class.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nannyml.com/cloud/v0.24.1/nannyml-cloud-sdk/example/setting-up-continuous-monitoring.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
