Liking cljdoc? Tell your friends :D

metabase.models.dashboard-card


create-dashboard-card!clj

(create-dashboard-card! dashboard-card)

Inputs: [dashboard-card :- NewDashboardCard]

Create a new DashboardCard by inserting it into the database along with all associated pieces of data such as DashboardCardSeries. Returns the newly created DashboardCard or throws an Exception.

Inputs: [dashboard-card :- NewDashboardCard]

Create a new DashboardCard by inserting it into the database along with all associated pieces of data such as
 DashboardCardSeries. Returns the newly created DashboardCard or throws an Exception.
sourceraw docstring

dashboardclj

(dashboard {:keys [dashboard_id]})

Return the Dashboard associated with the DashboardCard.

Return the Dashboard associated with the DashboardCard.
sourceraw docstring

DashboardCardclj

(DashboardCard)
(DashboardCard id)
(DashboardCard & kvs)

Entity for 'report_dashboardcard' table; instance of DashboardCardInstance.

Entity for 'report_dashboardcard' table; instance of DashboardCardInstance.
sourceraw docstring

delete-dashboard-card!clj

(delete-dashboard-card! dashboard-card user-id)

Delete a DashboardCard`

Delete a DashboardCard`
sourceraw docstring

retrieve-dashboard-cardclj

(retrieve-dashboard-card id)

Inputs: [id :- su/IntGreaterThanZero]

Fetch a single DashboardCard by its ID value.

Inputs: [id :- su/IntGreaterThanZero]

Fetch a single DashboardCard by its ID value.
sourceraw docstring

seriesclj

(series {:keys [id]})

Return the Cards associated as additional series on this DashboardCard.

Return the `Cards` associated as additional series on this DashboardCard.
sourceraw docstring

update-dashboard-card!clj

(update-dashboard-card! {:keys [id series parameter_mappings
                                visualization_settings]
                         :as dashboard-card})

Inputs: [{:keys [id series parameter_mappings visualization_settings], :as dashboard-card} :- DashboardCardUpdates]

Update an existing DashboardCard` including all DashboardCardSeries. Returns the updated DashboardCard or throws an Exception.

Inputs: [{:keys [id series parameter_mappings visualization_settings], :as dashboard-card} :- DashboardCardUpdates]

Update an existing DashboardCard` including all DashboardCardSeries.
 Returns the updated DashboardCard or throws an Exception.
sourceraw docstring

update-dashboard-card-series!clj

(update-dashboard-card-series! {:keys [id]} card-ids)

Inputs: [{:keys [id]} :- {:id su/IntGreaterThanZero, s/Keyword s/Any} card-ids :- [su/IntGreaterThanZero]]

Update the DashboardCardSeries for a given DashboardCard. card-ids should be a definitive collection of all IDs of cards for the dashboard card in the desired order.

  • If an ID in card-ids has no corresponding existing DashboardCardSeries object, one will be created.
  • If an existing DashboardCardSeries has no corresponding ID in card-ids, it will be deleted.
  • All cards will be updated with a position according to their place in the collection of card-ids
Inputs: [{:keys [id]} :- {:id su/IntGreaterThanZero, s/Keyword s/Any} card-ids :- [su/IntGreaterThanZero]]

Update the DashboardCardSeries for a given DashboardCard.
 `card-ids` should be a definitive collection of *all* IDs of cards for the dashboard card in the desired order.

 *  If an ID in `card-ids` has no corresponding existing DashboardCardSeries object, one will be created.
 *  If an existing DashboardCardSeries has no corresponding ID in `card-ids`, it will be deleted.
 *  All cards will be updated with a `position` according to their place in the collection of `card-ids`
sourceraw docstring

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

× close