Lotus.Storage.Dashboard (Lotus v0.16.4)

Copy Markdown View Source

Represents a saved Lotus dashboard.

Dashboards are collections of cards that display query results, text, links, or headings. They support:

  • Multiple cards arranged in a 12-column grid layout
  • Dashboard-level filters that can be mapped to query variables
  • Public sharing via unique tokens
  • Auto-refresh at configurable intervals

Summary

Types

t()

@type t() :: %Lotus.Storage.Dashboard{
  __meta__: term(),
  auto_refresh_seconds: non_neg_integer() | nil,
  cards: [Lotus.Storage.DashboardCard.t()] | Ecto.Association.NotLoaded.t(),
  description: String.t() | nil,
  filters: [Lotus.Storage.DashboardFilter.t()] | Ecto.Association.NotLoaded.t(),
  id: term(),
  inserted_at: DateTime.t(),
  name: String.t(),
  public_token: String.t() | nil,
  settings: map(),
  updated_at: DateTime.t()
}

Functions

changeset(dashboard, attrs)

new(attrs)

update(dashboard, attrs)