View Source ExTeal.Metric.Request (ExTeal v0.27.7)

Data Structure for building a Query for a Metric

Used by the Metric modules to build a data result that is turned into a Metric Result



@type t() :: %ExTeal.Metric.Request{
  conn: term(),
  end_at: term(),
  resource: term(),
  resource_id: term(),
  start_at: term(),
  timezone: term(),
  unit: term(),
  uri: term()


Link to this function

from_conn(conn, resource \\ nil)

View Source
@spec from_conn(Plug.Conn.t(), module() | nil) :: t()