Adding additional KPIs, adding required documentation
[ric-app/mc.git] / mc-core / mc / queries / debug.gsql
1 DEFINE{ query_name 'reconfig_all_debug'; 
2         max_lfta_disorder '1'; max_hfta_disorder '1';
3 }
4 PARAM{ window uint; }
5 select 'reconfig_all_debug' as name, 
6         count(*) as cnt, ($window*(TB+1))/1000 as TS, 
7         $window/1000.0 as measurementInterval
8 from RECONCOMPLETE.reconfig_all
9 where schemaId=103
10 group by timestamp_ms / $window as TB
11 ;
12
13 DEFINE{ query_name 'reconfig_success_debug'; 
14         max_lfta_disorder '1'; max_hfta_disorder '1';
15 }
16 PARAM{ window uint; }
17 select 'reconfig_success_debug' as name,
18         count(*) as cnt, ($window*(TB+1))/1000 as TS, 
19         $window/1000.0 as measurementInterval
20 from RECONCOMPLETE.reconfig_success
21 where schemaId=101
22 group by timestamp_ms / $window as TB
23 ;
24
25 DEFINE{ query_name 'reconfig_reject_debug'; 
26         max_lfta_disorder '1'; max_hfta_disorder '1';
27 }
28 PARAM{ window uint; }
29 select 'reconfig_reject_debug' as name,
30         count(*) as cnt, ($window*(TB+1))/1000 as TS, 
31         $window/1000.0 as measurementInterval
32 from RECONCOMPLETE.reconfig_reject
33 where schemaId=102
34 group by timestamp_ms / $window as TB
35 ;
36
37 DEFINE{ query_name 'dc_release_debug'; 
38         max_lfta_disorder '1'; max_hfta_disorder '1';
39 }
40 PARAM{ window uint; }
41 select 'dc_release_debug' as name,
42         count(*) as cnt, ($window*(TB+1))/1000 as TS, 
43         $window/1000.0 as measurementInterval
44 from CONRELEASE.dc_release
45 where schemaId=201
46 group by timestamp_ms / $window as TB
47
48