Adding MC-NIB support
[ric-app/mc.git] / mc-core / mc / queries / addreq_pdf.gsql
index a06d137..400d313 100644 (file)
@@ -1,5 +1,6 @@
 DEFINE{ query_name 'addreq_pdf_nr_cell'; 
        max_lfta_disorder '1'; max_hfta_disorder '1';
+       comment 'histogram of neighboring cell RSRP, aggregated by cell id';
 }
 PARAM{ window uint;}
 //     rsrp, rsrq, sinr ranges are 0 .. 127
@@ -14,12 +15,13 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval,
        sum(GEQ(rsrp,68)*LEQ(rsrp,82)) as rsrp_good,
        sum(GEQ(rsrp,83)*LEQ(rsrp,127)) as rsrp_vgood
 from SGNB_ADDITION_REQ.sgnb_addreq_for_ue_mn_neigh_ssb
-where schemaId = 410
+//where schemaId = 410
 group by timestamp_ms/$window as tb, physCellId
 ;
 
 DEFINE{ query_name 'addreq_pdf_nr_gnb'; 
        max_lfta_disorder '1'; max_hfta_disorder '1';
+       comment 'histogram of neighboring cell RSRP, aggregated by GNB, as computed from addition request events.';
 }
 PARAM{ window uint;}
 //     rsrp, rsrq, sinr ranges are 0 .. 127
@@ -34,6 +36,6 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval,
        sum(GEQ(rsrp,68)*LEQ(rsrp,82)) as rsrp_good,
        sum(GEQ(rsrp,83)*LEQ(rsrp,127)) as rsrp_vgood
 from SGNB_ADDITION_REQ.sgnb_addreq_for_ue_mn_neigh_ssb
-where schemaId = 410
+//where schemaId = 410
 group by timestamp_ms/$window as tb, gnb_id