Create object for grafana instance
Parameters: |
|
---|
Create a new datasource
Parameters: |
|
---|---|
Raises Exception: | |
if datasource already exists |
Delete a datasource
Parameters: | datasource_id (int) – Id number of datasource |
---|---|
Raises Exception: | |
if datasource failed to delete |
Get a datasource
Parameters: | datasource_id (int) – Id number of datasource |
---|---|
Return type: | dict or None |
List all datasource
Return type: | dict |
---|
Check if a datasource exists
Parameters: | name (str) – URL friendly title of the dashboard |
---|---|
Returns: | if datasource exists return id number. |
Return type: | int |
Update an existing datasource
Parameters: |
|
---|---|
Raises Exception: | |
if datasource already exists |
Create a new dashboard
Parameters: |
|
---|---|
Raises Exception: | |
if dashboard already exists |
Delete a dashboard
Parameters: | name (str) – URL friendly title of the dashboard |
---|---|
Raises Exception: | |
if dashboard failed to delete |
Get a dashboard
Parameters: | name (str) – URL friendly title of the dashboard |
---|---|
Return type: | dict or None |
Check if a dashboard exists
Parameters: | name (str) – URL friendly title of the dashboard |
---|---|
Returns: | True if dashboard exists |
Return type: | bool |