Cube refresh
A scheduling rule that refreshes a MicroStrategy cube once the tables it reads are loaded.
Use it when A MicroStrategy cube should refresh when its tables load, not at a fixed hour.
- name: Refresh the acme sales cube when its tables are loaded
priority: 5
status: active
code_id: bi/acme-sales-cube-refresh
applies_to:
node_ids:
- MicrostrategyCube_<cube-id>-<project-id>
when:
events:
- origin: ancestors
types: data_updated
ancestor_depth: direct
wait_for_all_ancestors: true
if:
quiet_period_seconds: 300
then:
target:
same_as_applies_to: true
scope: node
do:
kind: single
action:
type: microstrategy_refresh
parameters:
project_id: <project-id>
Taken from docs/integrations/microstrategy.md
The rule waits until every direct ancestor of the cube has a new event, then for five quiet minutes. It then runs
microstrategy_refresh, an asynchronous publish through the REST API. Set project_id in the parameters: without it
the executor uses a project id fixed in the code, which will not be yours.
A cube refresh is not finished at the first update of the cube: Nistor waits for the publish step to settle. Saving the
rule needs the Nistor permission actions:run_microstrategy, and the MicroStrategy account needs Execute on the cube.