From 5576b44c0e9bf6e71fec1a8cd0ac5803feb386cd Mon Sep 17 00:00:00 2001 From: Michael Kearey Date: Tue, 28 Oct 2025 17:45:53 +1000 Subject: [PATCH] Added fields for monitoring to work with ansible ns1 module ns1_monitor_job.py --- ns1/rest/monitoring.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ns1/rest/monitoring.py b/ns1/rest/monitoring.py index b21e85a..68ecd43 100644 --- a/ns1/rest/monitoring.py +++ b/ns1/rest/monitoring.py @@ -17,11 +17,22 @@ class Monitors(resource.BaseResource): "policy", "notes", "rules", - "notify_delay", "notify_list", ] - INT_FIELDS = ["frequency", "notify_repeat"] - BOOL_FIELDS = ["active", "rapid_recheck", "notify_regional"] + + INT_FIELDS = [ + "frequency", + "notify_delay", + "notify_repeat" + ] + + BOOL_FIELDS = [ + "active", + "rapid_recheck", + "notify_regional", + "mute", + "notify_failback" + ] def list(self, callback=None, errback=None): return self._make_request(