Skip to content

Commit

Permalink
fixing URL values
Browse files Browse the repository at this point in the history
  • Loading branch information
DheerajDang committed Jul 2, 2019
1 parent e823e18 commit a5ed26f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions grafana_api/api/alerting.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_alert_by_id(self, alert_id):
:param alert_id: alert ID
:return: response
"""
path = 'alerts/%s' % alert_id
path = '/alerts/%s' % alert_id
r = self.api.GET(path)
return r

Expand All @@ -64,6 +64,6 @@ def pause_alert(self, alert_id, json_dict):
:param json_dict: json dict with pause flag True or False
:return: response
"""
path = 'alerts/%s/pause' % alert_id
path = '/alerts/%s/pause' % alert_id
r = self.api.POST(path, json=json_dict)
return r
4 changes: 2 additions & 2 deletions grafana_api/api/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def create_annotation_in_graphite(self, annotation):
:param annotation: annotation json request
:return: response
"""
path = 'annotations/graphite'
path = '/annotations/graphite'
r = self.api.POST(path, json=annotation)
return r

Expand Down Expand Up @@ -94,6 +94,6 @@ def delete_region_annotations(self, region_id):
:param region_id: ID of region
:return: response
"""
path = 'annotations/region/%s' % region_id
path = '/annotations/region/%s' % region_id
r = self.api.DELETE(path)
return r
4 changes: 2 additions & 2 deletions grafana_api/api/dashboard_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def restore_dashboard(self, dashboard_id, json_body):
:param dashboard_id: Dashboard ID
:return: response
"""
path = 'dashboards/id/%s/restore' % dashboard_id
path = '/dashboards/id/%s/restore' % dashboard_id
r = self.api.POST(path, json=json_body)
return r

Expand All @@ -42,6 +42,6 @@ def compare_dashboard_versions(self, dashboard_body):
Method to compare dashboard versions
:return: response
"""
path = 'api/dashboards/calculate-diff'
path = '/api/dashboards/calculate-diff'
r = self.api.POST(path, json=dashboard_body)
return r

0 comments on commit a5ed26f

Please sign in to comment.