Skip to content

Commit

Permalink
update readme list_monitors (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
murilommen authored Dec 9, 2024
1 parent 3e92905 commit c8d5e29
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions whylabs_toolkit/helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,20 @@ delete_monitor(
monitor_id="monitor_id"
)
```

### List monitors

To list all the monitor ids associated with a dataset-id, you can do:

```python
from whylabs_toolkit.helpers.monitor_helpers import list_monitors

monitors = list_monitors(
org_id="org_id",
dataset_id="dataset_id"
)

print(monitors)

# >> ["monitor-1", "monitor-2"]
```

0 comments on commit c8d5e29

Please sign in to comment.