Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions grafana_client/elements/_async/alertingprovisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ async def set_notification_policy_tree(self, notification_policy_tree, disable_p
set_notification_policy_tree_path = "/v1/provisioning/policies"
return await self.client.PUT(set_notification_policy_tree_path, json=notification_policy_tree, headers=headers)

async def delete_notification_policy_tree(self):
"""
Removes notification policy tree
@return:
"""
delete_notification_policy_tree_path = "/v1/provisioning/policies"
return await self.client.DELETE(delete_notification_policy_tree_path)

async def get_mute_timings(self):
"""
Gets all mute timings
Expand Down
8 changes: 8 additions & 0 deletions grafana_client/elements/alertingprovisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ def set_notification_policy_tree(self, notification_policy_tree, disable_provena
set_notification_policy_tree_path = "/v1/provisioning/policies"
return self.client.PUT(set_notification_policy_tree_path, json=notification_policy_tree, headers=headers)

def delete_notification_policy_tree(self):
"""
Removes notification policy tree
@return:
"""
delete_notification_policy_tree_path = "/v1/provisioning/policies"
return self.client.DELETE(delete_notification_policy_tree_path)

def get_mute_timings(self):
"""
Gets all mute timings
Expand Down