notifications.rule
Operation: PUT /dataservice/notifications/rule
Update notification rule
def put(rule_id: str, payload: Any) -> None: ...
Example:
from catalyswan.core import create_client
url = "example.com"
username = "admin"
password = "password123"
with create_client(
url=url, username=username, password=password
) as client:
client.notifications.rule.put()
Operation: POST /dataservice/notifications/rule
Add notification rule
def post(payload: Any) -> None: ...
Example:
from catalyswan.core import create_client
url = "example.com"
username = "admin"
password = "password123"
with create_client(
url=url, username=username, password=password
) as client:
client.notifications.rule.post()