#!/bin/bash
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_QOUT=1 GHA2DB_DEBUG=1 calc_metric multi_row_single_column ./metrics/kubernetes/activity_repo_groups.sql '2018-05-01 0' '2018-05-08 7' h multivalue
# GHA2DB_LOCAL=1 GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_QOUT=1 GHA2DB_DEBUG=1 calc_metric events_h metrics/shared/events.sql '2018-05-01' '2018-05-03' d desc:time_diff_as_string
# GHA2DB_LOCAL=1 GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_QOUT=1 GHA2DB_DEBUG=1 calc_metric multi_row_multi_column metrics/kubernetes/pr_workload_table.sql '2018-05-01' '2018-05-03' a_29_30 hist,multivalue,annotations_ranges,skip_past
# GHA2DB_LOCAL=1 GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_QOUT=1 GHA2DB_DEBUG=1 calc_metric multi_row_single_column metrics/kubernetes/hist_reviewers.sql '2018-05-01' '2018-05-03' a_29_30 hist,annotations_ranges,skip_past
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_DEBUG=1 calc_metric multi_row_single_column ./metrics/kubernetes/activity_repo_groups.sql '2018-05-01 0' '2018-05-03 20' h4 multivalue
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_DEBUG=1 calc_metric multi_row_multi_column ./metrics/kubernetes/issues_age.sql '2018-05-01 0' '2018-05-05 13' q desc:time_diff_as_string,merge_series:issues_age
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_DEBUG=1 calc_metric multi_row_multi_column ./metrics/kubernetes/pr_workload.sql '2018-05-01 0' '2018-05-05 14' d multivalue
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_DEBUG=1 calc_metric multi_row_multi_column ./metrics/kubernetes/issues_age.sql '2014-06-01 0' '2018-05-07 17' y desc:time_diff_as_string,merge_series:issues_age
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_DEBUG=1 calc_metric multi_row_multi_column ./metrics/kubernetes/time_metrics.sql '2014-06-01 0' '2018-05-07 17' y desc:time_diff_as_string,merge_series:time_metrics
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_DEBUG=1 calc_metric multi_row_single_column ./metrics/kubernetes/reviews_per_user.sql '2018-05-01 0' '2018-05-08 8' y multivalue
# GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_DEBUG=1 calc_metric multi_row_multi_column ./metrics/kubernetes/pr_workload_table.sql '2018-05-01 0' '2018-05-08 11' m hist,multivalue,annotations_ranges
GHA2DB_LOCAL=1 GHA2DB_PROJECT=kubernetes GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB_QOUT=1 GHA2DB_CMDDEBUG=2 GHA2DB_DEBUG=2 calc_metric multi_row_multi_column ./metrics/kubernetes/issues_age.sql '2018-04-30 0' '2018-05-07 0' d7 desc:time_diff_as_string,merge_series:issues_age
