X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=mc-core%2Fmc%2Fqueries%2Faddreq_stats.gsql;h=081eaf623c00c27d423bd73cd17f44fcbd093a42;hb=HEAD;hp=84bfd8ea3f66519dbb29b11b7ba88764e21c94e7;hpb=9b604aeefe0126a54dccf312cb24c2649f221a4a;p=ric-app%2Fmc.git diff --git a/mc-core/mc/queries/addreq_stats.gsql b/mc-core/mc/queries/addreq_stats.gsql index 84bfd8e..081eaf6 100644 --- a/mc-core/mc/queries/addreq_stats.gsql +++ b/mc-core/mc/queries/addreq_stats.gsql @@ -1,29 +1,30 @@ DEFINE{ query_name 'addreq_stats_nr_cell'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics about neighboring cell RSRP aggregated by cell id'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 // to convert rsrp to dbm, subtract 157 select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, - physCellId as CELL_ID, + physCellId as CELL_ID, gnb_id as GNB_ID, count(*) as cnt, INT(min(rsrp))-INT(157) as min_rsrp, INT(quantile_of(rsrp, .05)) - INT(157) as pctl_05_rsrp, INT(median_of(rsrp)) - INT(157) as median_rsrp, INT(quantile_of(rsrp, .95)) - INT(157) as pctl_95_rsrp, sqrt( - sum( (FLOAT(rsrp)-157)*(FLOAT(rsrp)-157)) - - sum( (FLOAT(rsrp)-157) )*sum( (FLOAT(rsrp)-157) )/count(*) + sum( (rsrp-157.0)*(rsrp-157.0) ) - + sum( rsrp-157.0 )*sum( rsrp-157.0 )/count(*) ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from SGNB_ADDITION_REQ.sgnb_addreq_for_ue_mn_neigh_ssb -where schemaId = 410 -group by timestamp_ms/$window as tb, physCellId +group by timestamp_ms/$window as tb, physCellId, gnb_id ; DEFINE{ query_name 'addreq_stats_nr_gnb'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics about neighboring cell RSRP aggregated by GNB, as computed from addition request events.'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 @@ -37,10 +38,9 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, INT(median_of(rsrp)) - INT(157) as median_rsrp, INT(quantile_of(rsrp, .95)) - INT(157) as pctl_95_rsrp, sqrt( - sum( (FLOAT(rsrp)-157)*(FLOAT(rsrp)-157)) - - sum( (FLOAT(rsrp)-157) )*sum( (FLOAT(rsrp)-157) )/count(*) + sum( (rsrp-157.0)*(rsrp-157.0) ) - + sum( rsrp-157.0 )*sum( rsrp-157.0 )/count(*) ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from SGNB_ADDITION_REQ.sgnb_addreq_for_ue_mn_neigh_ssb -where schemaId = 410 group by timestamp_ms/$window as tb, gnb_id