grafana v0.1.2 Grafana.Currentuser View Source

Link to this section Summary

Functions

Change password for the current user

Get the actual current user

Get orgs for the actual current user

Star dashboard with given id for the current user

Change organization context for the current user

Unstar dashboard with given id for the current user

Link to this section Functions

Change password for the current user.

Get the actual current user.

iex> {:ok, user} = Grafana.Currentuser.get …> Map.keys(user) [“email”, “isGrafanaAdmin”, “login”, “name”, “orgId”, “theme”]

Get orgs for the actual current user.

iex> {:ok, orgs} = Grafana.Currentuser.orgs …> Map.keys(hd(orgs)) [“name”, “orgId”, “role”]

Link to this function star_dashboard(dashboard_id) View Source

Star dashboard with given id for the current user.

Change organization context for the current user.

Link to this function unstar_dashboard(dashboard_id) View Source

Unstar dashboard with given id for the current user.