grafana v0.1.2 Grafana.Snapshot View Source

Link to this section Summary

Functions

Delete snapshot with given DeleteKey. The DeleteKey is returned when the snapshot is created

Get snapshot with given key

Create a new snapshot as specified by json

Build snapshot URL from given key

Link to this section Functions

Delete snapshot with given DeleteKey. The DeleteKey is returned when the snapshot is created.

iex> {:ok, result} = Grafana.Snapshot.delete(“delete_key”) …> Map.keys(result) [“message”]

Get snapshot with given key.

iex> {:ok, result} = Grafana.Snapshot.get(“my_key”) …> Map.keys(result) [“dashboard”,”meta”]

Create a new snapshot as specified by json.

iex> {:ok, result} = Grafana.Snapshot.new(%{“dashboard” => %{}, “expires” => 3600}) …> Map.keys(result) [“deleteKey”,”deleteUrl”,”key”,”url”]

Build snapshot URL from given key.