Skip to content

Managing Scheduled Plans

Dr. Strange Looker edited this page Jun 19, 2018 · 2 revisions

Managing Scheduled Plans

List All Enabled Scheduled Plans

gzr plan ls --host=looker.example.com

List Disabled Scheduled Plans

gzr plan ls --disabled --host=looker.example.com

Display Scheduled Plan Details

gzr plan cat PLAN_ID --host=looker.example.com

Delete Scheduled Plan

gzr plan rm PLAN_ID --host=looker.example.com

Disable Scheduled Plan

gzr plan disable PLAN_ID --host=looker.example.com

Enable Scheduled Plan

gzr plan enable PLAN_ID --host=looker.example.com

Import Scheduled Plan

When importing a scheduled plan, the switches --enable and --disable can be used to force the enabled state of the plan. Otherwise the enabled state will reflect the JSON input file.

Import Scheduled Plan For a Look

gzr plan import PLAN_FILE look LOOK_ID --host=looker.example.com

Import Scheduled Plan For a Dashboard

gzr plan import PLAN_FILE dashboard DASHBOARD_ID --host=looker.example.com

Run a Scheduled Plan manually

gzr plan runit PLAN_ID --host=looker.example.com

Report All Scheduled Plan Failures

gzr plan failures --host=looker.example.com will list all the plans that have failed in their most recent attempt. The --plain switch can be used to provide the data without extra formatting. Using cut and xargs the plan id can be fed to gzr plan runit so that failed plans can be retried in bulk.