X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=mc-core%2Fmc%2Fqueries%2Frrcx_stats.gsql;h=f8b195834cb2db7599b9aa00354ab85f5cce6fcf;hb=0eb834e581b25c0ac0a657b1b7d8bb70fe4d2aa9;hp=edb721583b7a4c412c4a94b10f7babdeaed34575;hpb=7f09b7d24896c782a3e599ec35f76a42d2abd306;p=ric-app%2Fmc.git diff --git a/mc-core/mc/queries/rrcx_stats.gsql b/mc-core/mc/queries/rrcx_stats.gsql index edb7215..f8b1958 100644 --- a/mc-core/mc/queries/rrcx_stats.gsql +++ b/mc-core/mc/queries/rrcx_stats.gsql @@ -1,5 +1,6 @@ DEFINE{ query_name 'rrcx_stats_neigh_cell'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics on ssb RSRP on the beams of nrighboring cells, aggregated by cell ID, computed using rrc transfer'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 @@ -18,12 +19,14 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from RRCXFER.neighbor_beam_ssb -where schemaId = 6 and rsrp<128 +//where schemaId = 6 and rsrp<128 +where rsrp<128 group by timestamp_ms/$window as tb, physCellId ; DEFINE{ query_name 'rrcx_stats_neigh_gnb'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics on ssb RSRP on the beams of nrighboring cells, aggregated by gNB, computed using rrc transfer'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 @@ -42,13 +45,15 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from RRCXFER.neighbor_beam_ssb -where schemaId = 6 and rsrp<128 +where rsrp<128 +//where schemaId = 6 and rsrp<128 group by timestamp_ms/$window as tb, gnb_id ; DEFINE{ query_name 'rrcx_stats_serv_cell'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics on the ssb rsrp of the serving cell, aggregated by cell id, computed using rrc transfer'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 @@ -67,12 +72,14 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from RRCXFER.serv_nr_cell -where schemaId = 1 and rsrp<128 +where rsrp<128 +//where schemaId = 1 and rsrp<128 group by timestamp_ms/$window as tb, physCellId ; DEFINE{ query_name 'rrcx_stats_neighbor_cell'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics on the ssb rsrp of the neighbor cells, aggregated by cell id, computed using rrc transfer'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 @@ -91,13 +98,15 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from RRCXFER.nr_neighbor -where schemaId = 4 and rsrp<128 +//where schemaId = 4 and rsrp<128 +where rsrp<128 group by timestamp_ms/$window as tb, physCellId ; DEFINE{ query_name 'rrcx_stats_serv_gnb'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics on the ssb srp of the serving cell, aggregated by gNB, computed using rrc transfer'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 @@ -116,12 +125,14 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from RRCXFER.serv_nr_cell -where schemaId = 1 and rsrp<128 +//where schemaId = 1 and rsrp<128 +where rsrp<128 group by timestamp_ms/$window as tb, gnb_id ; DEFINE{ query_name 'rrcx_stats_neighbor_gnb'; max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'statistics on the ssb rsrp of the neighbor cells, aggregated by gNB, computed using rrc transfer'; } PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 @@ -140,6 +151,7 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, ) / count(*) as stddev_rsrp, INT(max(rsrp))-INT(157) as max_rsrp from RRCXFER.nr_neighbor -where schemaId = 4 and rsrp<128 +//where schemaId = 4 and rsrp<128 +where rsrp<128 group by timestamp_ms/$window as tb, gnb_id