View Source Luminous.Panel (luminous v0.1.0)

a panel represents a single visual element (chart) in a dashboard contains many queries

Link to this section Summary

Functions

initialize a panel at compile time

refresh all panel queries

Link to this section Types

@type panel_type() :: :chart | :stat
@type t() :: %Luminous.Panel{
  description: binary(),
  hook: binary(),
  id: atom(),
  queries: [Luminous.Query.t()],
  stacked_x: boolean(),
  stacked_y: boolean(),
  title: binary(),
  type: panel_type(),
  unit: binary(),
  xlabel: binary(),
  ylabel: binary()
}

Link to this section Functions

Link to this function

define(id, title, type, queries, opts \\ [])

View Source
@spec define(atom(), binary(), panel_type(), [Luminous.Query.t()], Keyword.t()) :: t()

initialize a panel at compile time

Link to this function

refresh(panel, variables, time_range)

View Source

refresh all panel queries