From 9bdad67e91fbd1f88eee3156b3762bda1d958e49 Mon Sep 17 00:00:00 2001 From: JimOverholt <115191247+JimOverholt@users.noreply.github.com> Date: Sat, 4 May 2024 08:22:08 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 25e71ca4..4c365d9e 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,7 @@ critical_alarms = session.api.alarms.get(from_time=n).filter(severity=Severity.C session.api.users.get() # Create user +from catalystwan.endpoints.administration_user_and_group import User new_user = User(username="new_user", password="new_user", group=["netadmin"], description="new user") session.api.users.create(new_user) From 3440165f393be3a070e4d70b43cff296171cde23 Mon Sep 17 00:00:00 2001 From: JimOverholt <115191247+JimOverholt@users.noreply.github.com> Date: Sat, 4 May 2024 19:02:40 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4c365d9e..b8d5d1d6 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,7 @@ alarms_from_n_hours = session.api.alarms.get(from_time=n) To get all critical alarms from past `n` hours: ```python +from catalystwan.utils.alarm_status import Severity n = 48 critical_alarms = session.api.alarms.get(from_time=n).filter(severity=Severity.CRITICAL) ```