grafana v0.1.3 Grafana.Datasource View Source

Link to this section Summary

Functions

Delete datasource with given id

Get all datasources

Get single datasource by id

Create a new datasource specified by json

Proxies all calls to the actual datasource

Get all available datasource types

Update datasource with given id, as specified by json

Link to this section Functions

Delete datasource with given id.

Get all datasources.

iex> {:ok, datasources} = Grafana.Datasource.get …> Map.keys(hd(datasources)) [“access”, “basicAuth”, “basicAuthPassword”, “basicAuthUser”, “database”, “id”, “isDefault”, “name”, “orgId”, “password”, “type”, “typeLogoUrl”, “url”, “user”, “withCredentials”]

Get single datasource by id.

iex> {:ok, datasource} = Grafana.Datasource.get 1 …> Map.keys(hd(datasource)) [“access”, “basicAuth”, “basicAuthPassword”, “basicAuthUser”, “database”, “id”, “isDefault”, “name”, “orgId”, “password”, “type”, “typeLogoUrl”, “url”, “user”, “withCredentials”]

Create a new datasource specified by json.

Proxies all calls to the actual datasource

Get all available datasource types.

Update datasource with given id, as specified by json.