Skip to content

Commit d6fa598

Browse files
author
Serhiy Yevtushenko
committed
fix: run scripts\generate_async.py
1 parent a182834 commit d6fa598

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

grafana_client/elements/_async/alertingprovisioning.py

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

148+
async 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 await self.client.DELETE(delete_notification_policy_tree_path)
155+
148156
async def get_mute_timings(self):
149157
"""
150158
Gets all mute timings

0 commit comments

Comments
 (0)