From 3557f23287ead88d87934e2df4d0b31e27d15b3f Mon Sep 17 00:00:00 2001 From: "jinwei.fan" Date: Tue, 1 Dec 2020 11:59:22 +0800 Subject: [PATCH] Set "UE ID" field in Ue Metrics. Signed-off-by: jinwei.fan Change-Id: Id789316a0a7abd14a17ee112e1a6bbc6d71f48ef --- control/control.go | 6 ++++++ control/types.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/control/control.go b/control/control.go index 4b8b90d..969ef90 100644 --- a/control/control.go +++ b/control/control.go @@ -649,6 +649,8 @@ func (c *Control) handleIndication(params *xapp.RMRParams) (err error) { json.Unmarshal([]byte(ueJsonStr), &ueMetrics) } + ueMetrics.UeID = ueID + log.Printf("UeID: %d", ueMetrics.UeID) ueMetrics.ServingCellID = servingCellID log.Printf("ServingCellID: %s", ueMetrics.ServingCellID) @@ -719,6 +721,8 @@ func (c *Control) handleIndication(params *xapp.RMRParams) (err error) { json.Unmarshal([]byte(ueJsonStr), &ueMetrics) } + ueMetrics.UeID = ueID + log.Printf("UeID: %d", ueMetrics.UeID) ueMetrics.ServingCellID = servingCellID log.Printf("ServingCellID: %s", ueMetrics.ServingCellID) @@ -797,6 +801,8 @@ func (c *Control) handleIndication(params *xapp.RMRParams) (err error) { json.Unmarshal([]byte(ueJsonStr), &ueMetrics) } + ueMetrics.UeID = ueID + log.Printf("UeID: %d", ueMetrics.UeID) ueMetrics.ServingCellID = servingCellID log.Printf("ServingCellID: %s", ueMetrics.ServingCellID) diff --git a/control/types.go b/control/types.go index 387c137..d7c5938 100644 --- a/control/types.go +++ b/control/types.go @@ -360,7 +360,7 @@ type NeighborCellRFType struct { } type UeMetricsEntry struct { - UeID string `json:"UE ID"` + UeID int64 `json:"UE ID"` ServingCellID string `json:"Serving Cell ID"` MeasTimestampPDCPBytes Timestamp `json:"Meas-Timestamp-PDCP-Bytes"` PDCPBytesDL int64 `json:"PDCP-Bytes-DL"`