Liking cljdoc? Tell your friends :D

metabase.automagic-dashboards.core

Automatically generate questions and dashboards based on predefined heuristics.

Automatically generate questions and dashboards based on predefined
heuristics.
raw docstring

->fieldclj

(->field root id-or-name)

Return Field instance for a given ID or name in the context of root.

Return `Field` instance for a given ID or name in the context of root.
sourceraw docstring

->related-entityclj

(->related-entity entity)

Turn entity into an entry in :related.

Turn `entity` into an entry in `:related.`
sourceraw docstring

->rootcljmultimethod

(->root entity)
sourceraw docstring

automagic-analysiscljmultimethod

(automagic-analysis entity opts)

Create a transient dashboard analyzing given entity.

Create a transient dashboard analyzing given entity.
sourceraw docstring

candidate-tablesclj

(candidate-tables database)
(candidate-tables database schema)

Return a list of tables in database with ID database-id for which it makes sense to generate an automagic dashboard. Results are grouped by schema and ranked acording to interestingness (both schemas and tables within each schema). Each schema contains up to max-candidate-tables tables.

Tables are ranked based on how specific rule has been used, and the number of fields. Schemes are ranked based on the number of distinct entity types and the interestingness of tables they contain (see above).

Return a list of tables in database with ID `database-id` for which it makes sense
to generate an automagic dashboard. Results are grouped by schema and ranked
acording to interestingness (both schemas and tables within each schema). Each
schema contains up to `max-candidate-tables` tables.

Tables are ranked based on how specific rule has been used, and the number of
fields.
Schemes are ranked based on the number of distinct entity types and the
interestingness of tables they contain (see above).
sourceraw docstring

capitalize-firstclj

(capitalize-first s)

Capitalize only the first letter in a given string.

Capitalize only the first letter in a given string.
sourceraw docstring

cell-titleclj

(cell-title root cell-query)

Return a cell title given a root object and a cell query.

Return a cell title given a root object and a cell query.
sourceraw docstring

encode-base64-jsonclj

(encode-base64-json x)

Encode given object as base-64 encoded JSON.

Encode given object as base-64 encoded JSON.
sourceraw docstring

metric-nameclj

(metric-name [op & args :as metric])

Return the name of the metric or name by describing it.

Return the name of the metric or name by describing it.
sourceraw docstring

metric-opclj

(metric-op [op & args :as metric])

Return the name op of the metric

Return the name op of the metric
sourceraw docstring

source-nameclj

(source-name root)

Return the (display) name of the soruce of a given root object.

Return the (display) name of the soruce of a given root object.
sourceraw docstring

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

× close