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

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

Summary

Types

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

Functions

Link to this function

from_conn(conn, resource \\ nil)

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