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

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

Link to this section Summary

Link to this section Types

Specs

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 section Functions

Link to this function

from_conn(conn, resource \\ nil)

View Source

Specs

from_conn(Plug.Conn.t(), module() | nil) :: t()