Liking cljdoc? Tell your friends :D

metabase.models.metric

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.
raw docstring

Metricclj

(Metric)
(Metric id)
(Metric & kvs)

Entity for 'metric' table; instance of MetricInstance.

Entity for 'metric' table; instance of MetricInstance.
sourceraw docstring

metric-dependenciesclj

(metric-dependencies _ _ {:keys [definition]})

Calculate any dependent objects for a given Metric.

Calculate any dependent objects for a given Metric.
sourceraw docstring

retrieve-metricsclj

(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`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close