Skip to content

Commit

Permalink
added api get_alertrules_all
Browse files Browse the repository at this point in the history
added rest api for v1/provisioning/alert-rules
  • Loading branch information
harish422 authored Jul 29, 2023
1 parent 2448c67 commit 885e2cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions grafana_client/elements/alertingprovisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ def __init__(self, client):
super(AlertingProvisioning, self).__init__(client)
self.client = client

def get_alertrules_all(self):
"""
Gets all alert rules
@return:
"""
get_alertrules_all_path = "/v1/provisioning/alert-rules"
r = self.client.GET(get_alertrules_all_path)
return r

def get_alertrule(self, alertrule_uid):
"""
Expand Down

0 comments on commit 885e2cf

Please sign in to comment.