Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from cristim/master
Browse files Browse the repository at this point in the history
Implement APIs from the Other section
  • Loading branch information
m0nhawk authored Apr 19, 2018
2 parents a0ae993 + 6f7dbfb commit 727ad3e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Work on API implementation still in progress.
| User | + |
| Admin | +- |
| Preferences | + |
| Other | - |
| Other | + |

## Issue tracker

Expand Down
19 changes: 19 additions & 0 deletions grafana_api/grafana_face.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,3 +583,22 @@ def delete_api_key(self, id):
delete_api_key_path = '/auth/keys/%s' % (id)
r = self.api.DELETE(delete_api_key_path)
return r

# Other section
def get_frontend_settings(self):
"""
:return:
"""
get_frontend_settings_path = '/frontend/settings'
r = self.api.GET(get_frontend_settings_path)
return r

def get_login_ping(self):
"""
:return:
"""
get_login_ping_path = '/login/ping'
r = self.api.GET(get_login_ping_path)
return r
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = file.read()

setup(name='grafana_api',
version='0.2.6',
version='0.2.7',
description='Yet another Python library for Grafana API',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 727ad3e

Please sign in to comment.