Skip to content

Commit bbad1a0

Browse files
Merge pull request #140 from mkearey/add_fields_for_monitoring
Added fields for monitoring to work with ansible ns1 module ns1_monitor_job.py
2 parents 280c216 + 5576b44 commit bbad1a0

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

ns1/rest/monitoring.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,22 @@ class Monitors(resource.BaseResource):
1717
"policy",
1818
"notes",
1919
"rules",
20-
"notify_delay",
2120
"notify_list",
2221
]
23-
INT_FIELDS = ["frequency", "notify_repeat"]
24-
BOOL_FIELDS = ["active", "rapid_recheck", "notify_regional"]
22+
23+
INT_FIELDS = [
24+
"frequency",
25+
"notify_delay",
26+
"notify_repeat"
27+
]
28+
29+
BOOL_FIELDS = [
30+
"active",
31+
"rapid_recheck",
32+
"notify_regional",
33+
"mute",
34+
"notify_failback"
35+
]
2536

2637
def list(self, callback=None, errback=None):
2738
return self._make_request(

0 commit comments

Comments
 (0)