A Metric is a saved MBQL 'macro' expanding to a combination of :aggregation
and/or :filter
clauses.
It is passed in as an :aggregation
clause but is replaced by the expand-macros
middleware with the appropriate
clauses.
A Metric is a saved MBQL 'macro' expanding to a combination of `:aggregation` and/or `:filter` clauses. It is passed in as an `:aggregation` clause but is replaced by the `expand-macros` middleware with the appropriate clauses.
(Metric)
(Metric id)
(Metric & kvs)
Entity for 'metric' table; instance of MetricInstance.
Entity for 'metric' table; instance of MetricInstance.
(metric-dependencies _ _ {:keys [definition]})
Calculate any dependent objects for a given Metric.
Calculate any dependent objects for a given Metric.
(retrieve-metrics table-id)
(retrieve-metrics table-id state)
Inputs: ([table-id :- su/IntGreaterThanZero] [table-id :- su/IntGreaterThanZero state :- (s/enum :all :active :deleted)]) Returns: [MetricInstance]
Fetch all Metrics
for a given Table
. Optional second argument allows filtering by active state by providing one
of 3 keyword values: :active
, :deleted
, :all
. Default filtering is for :active
.
Inputs: ([table-id :- su/IntGreaterThanZero] [table-id :- su/IntGreaterThanZero state :- (s/enum :all :active :deleted)]) Returns: [MetricInstance] Fetch all `Metrics` for a given `Table`. Optional second argument allows filtering by active state by providing one of 3 keyword values: `:active`, `:deleted`, `:all`. Default filtering is for `:active`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close