Getting multiple columns in KRL stats_query with gem

I would like to use the function krl stats_queryfor the gem to get a table with several dimensions in it. At the moment, I can only figure out how to go through one size, one KPI and one range:

krl stats_query -k rules_fired -d day_of_week -r last_three_months

If I wanted the report to include rules_firedand brsehow would I do it? I tried comma-separated lists (e.g. -k brse,rules_fired), and passed a parameter -k(e.g., -k brse -k rules_fired) several times , and they don't work.

If it is possible to do this with KPI, is it possible to do this with dimensions? For example, I might need a report with ddmonyyyyand corresponding day_of_week.

+3
source share
1 answer

Found the answer in the source code for the gem. See. (At the time of writing) line 209 cli.rb . The solution consists of space-separate columns as needed, for example:

krl stats_query -k brse rules_fired -d day_of_week -r last_three_months.
+3
source

Source: https://habr.com/ru/post/1793949/


All Articles