X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=mc-core%2Fmc%2Fqueries%2Frrcx_pdf_cell.gsql;h=64eaa240cbea4eda5bfc87d11e8f88e9c97de24e;hb=refs%2Fchanges%2F49%2F2549%2F2;hp=68171f7472fd358dc0f8d03f7388b1df1ac5edcf;hpb=31d238a2cba18b87e05a7d9b4820db2c5186c658;p=ric-app%2Fmc.git diff --git a/mc-core/mc/queries/rrcx_pdf_cell.gsql b/mc-core/mc/queries/rrcx_pdf_cell.gsql index 68171f7..64eaa24 100644 --- a/mc-core/mc/queries/rrcx_pdf_cell.gsql +++ b/mc-core/mc/queries/rrcx_pdf_cell.gsql @@ -1,5 +1,8 @@ -DEFINE{ query_name 'rrcx_pdf_neigh_cell_csi'; } +DEFINE{ query_name 'rrcx_pdf_neigh_cell_csi'; + max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'distribution of the beam csi rsrp of neighboring cells, aggregated by cell id, computed from rrc transfer'; +} PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 // for now divide into 5 bins. @@ -13,11 +16,14 @@ 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 RRCXFER.neighbor_beam_csi -where schemaId = 5 +// where schemaId = 5 group by timestamp_ms/$window as tb, physCellId ; -DEFINE{ query_name 'rrcx_pdf_neigh_gnb_csi'; } +DEFINE{ query_name 'rrcx_pdf_neigh_gnb_csi'; + max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'distribution of the beam csi rsrp of neighboring cells, aggregated by gNB, computed from rrc transfer'; +} PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 // for now divide into 5 bins. @@ -31,12 +37,15 @@ 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 RRCXFER.neighbor_beam_csi -where schemaId = 5 +// where schemaId = 5 group by timestamp_ms/$window as tb, gnb_id ; -DEFINE{ query_name 'rrcx_pdf_neigh_cell_ssb'; } +DEFINE{ query_name 'rrcx_pdf_neigh_cell_ssb'; + max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'distribution of the beam ssb rsrp of neighboring cells, aggregated by cell id, computed from rrc transfer'; +} PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 // for now divide into 5 bins. @@ -50,11 +59,14 @@ 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 RRCXFER.neighbor_beam_ssb -where schemaId = 5 +// where schemaId = 6 group by timestamp_ms/$window as tb, physCellId ; -DEFINE{ query_name 'rrcx_pdf_neigh_gnb_ssb'; } +DEFINE{ query_name 'rrcx_pdf_neigh_gnb_ssb'; + max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'distribution of the beam ssb rsrp of neighboring cells, aggregated by gNB, computed from rrc transfer'; +} PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 // for now divide into 5 bins. @@ -68,13 +80,16 @@ 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 RRCXFER.neighbor_beam_ssb -where schemaId = 5 +// where schemaId = 6 group by timestamp_ms/$window as tb, gnb_id ; -DEFINE{ query_name 'rrcx_pdf_serv_cell'; } +DEFINE{ query_name 'rrcx_pdf_serv_cell'; + max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'distribution of the ssb rsrp of serving cell aggregated by cell id, computed from rrc transfer'; +} PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 // for now divide into 5 bins. @@ -88,11 +103,35 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, sum(GEQ(rsrp,52)*LEQ(rsrp,66)) as rsrp_good, sum(GEQ(rsrp,67)*LEQ(rsrp,127)) as rsrp_vgood from RRCXFER.serv_nr_cell -where schemaId = 1 +// where schemaId = 1 group by timestamp_ms/$window as tb, physCellId ; -DEFINE{ query_name 'rrcx_pdf_serv_gnb'; } +DEFINE{ query_name 'rrcx_pdf_neighbor_cell'; + max_lfta_disorder '1'; max_hfta_disorder '1'; +} +PARAM{ window uint;} +// rsrp, rsrq, sinr ranges are 0 .. 127 +// for now divide into 5 bins. + +select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, + physCellId as CELL_ID, + count(*) as cnt, + sum(GEQ(rsrp, 0)*LEQ(rsrp,21)) as rsrp_vbad, + sum(GEQ(rsrp,22)*LEQ(rsrp,36)) as rsrp_bad, + sum(GEQ(rsrp,37)*LEQ(rsrp,51)) as rsrp_medium, + sum(GEQ(rsrp,52)*LEQ(rsrp,66)) as rsrp_good, + sum(GEQ(rsrp,67)*LEQ(rsrp,127)) as rsrp_vgood +from RRCXFER.nr_neighbor +// where schemaId = 4 +group by timestamp_ms/$window as tb, physCellId +; + + +DEFINE{ query_name 'rrcx_pdf_serv_gnb'; + max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'distribution of the ssb rsrp of neighbor cells aggregated by cell id, computed from rrc transfer'; +} PARAM{ window uint;} // rsrp, rsrq, sinr ranges are 0 .. 127 // for now divide into 5 bins. @@ -106,6 +145,28 @@ select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, sum(GEQ(rsrp,52)*LEQ(rsrp,66)) as rsrp_good, sum(GEQ(rsrp,67)*LEQ(rsrp,127)) as rsrp_vgood from RRCXFER.serv_nr_cell -where schemaId = 1 +// where schemaId = 1 group by timestamp_ms/$window as tb, gnb_id +; + +DEFINE{ query_name 'rrcx_pdf_neighbor_gnb'; + max_lfta_disorder '1'; max_hfta_disorder '1'; + comment 'distribution of the ssb rsrp of neighbor cells aggregated by gNB, computed from rrc transfer'; +} +PARAM{ window uint;} +// rsrp, rsrq, sinr ranges are 0 .. 127 +// for now divide into 5 bins. + +select ($window*(tb+1))/1000 as TS, $window/1000.0 as measurementInterval, + gnb_id as GNB_ID, + count(*) as cnt, + sum(GEQ(rsrp, 0)*LEQ(rsrp,21)) as rsrp_vbad, + sum(GEQ(rsrp,22)*LEQ(rsrp,36)) as rsrp_bad, + sum(GEQ(rsrp,37)*LEQ(rsrp,51)) as rsrp_medium, + sum(GEQ(rsrp,52)*LEQ(rsrp,66)) as rsrp_good, + sum(GEQ(rsrp,67)*LEQ(rsrp,127)) as rsrp_vgood +from RRCXFER.nr_neighbor +// where schemaId = 4 +group by timestamp_ms/$window as tb, gnb_id +