Skip to content

Commit a182834

Browse files
author
Serhiy Yevtushenko
committed
fix: added method for removal of notification policy tree
1 parent c6b24d4 commit a182834

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

grafana_client/elements/alertingprovisioning.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ def set_notification_policy_tree(self, notification_policy_tree, disable_provena
145145
set_notification_policy_tree_path = "/v1/provisioning/policies"
146146
return self.client.PUT(set_notification_policy_tree_path, json=notification_policy_tree, headers=headers)
147147

148+
def delete_notification_policy_tree(self):
149+
"""
150+
Removes notification policy tree
151+
@return:
152+
"""
153+
delete_notification_policy_tree_path = "/v1/provisioning/policies"
154+
return self.client.DELETE(delete_notification_policy_tree_path)
155+
148156
def get_mute_timings(self):
149157
"""
150158
Gets all mute timings

0 commit comments

Comments
 (0)