Updating a set of supported NR metrics
[ric-app/mc.git] / mc-core / mc / local / lte_rb_thpt.h
diff --git a/mc-core/mc/local/lte_rb_thpt.h b/mc-core/mc/local/lte_rb_thpt.h
new file mode 100644 (file)
index 0000000..687157b
--- /dev/null
@@ -0,0 +1,101 @@
+#ifndef _LTE_RB_THPT_H__INCLUDED_
+#define _LTE_RB_THPT_H__INCLUDED_
+
+/*
+==============================================================================
+
+        Copyright (c) 2018-2019 AT&T Intellectual Property.
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+=============================================================================
+*/
+
+
+#include "packet.h"
+
+
+#include "/usr/local/include/protobuf-c/protobuf-c.h"
+
+struct _lte_rb_thpt {
+       gs_uint64_t timestamp_ms;
+       gs_uint32_t eci;
+       gs_uint32_t plmn;
+       gs_uint64_t eutran_trace_id;
+       gs_uint32_t crnti;
+       gs_int64_t imei;
+       gs_int64_t imsi;
+       gs_int64_t dataCollectionDuration;
+       gs_int64_t numOfPdcpPduRcvdForTx;
+       gs_int64_t numOfPdcpPduDiscarded;
+       gs_int64_t drb_Id;
+};
+
+static inline void init__lte_rb_thpt(struct _lte_rb_thpt *m){
+}
+
+static inline gs_retval_t get_lte_rb_thpt__timestamp_ms(struct packet *p, gs_uint64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->timestamp_ms;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__eci(struct packet *p, gs_uint32_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->eci;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__plmn(struct packet *p, gs_uint32_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->plmn;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__eutran_trace_id(struct packet *p, gs_uint64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->eutran_trace_id;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__crnti(struct packet *p, gs_uint32_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->crnti;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__imei(struct packet *p, gs_int64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->imei;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__imsi(struct packet *p, gs_int64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->imsi;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__dataCollectionDuration(struct packet *p, gs_int64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->dataCollectionDuration;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__numOfPdcpPduRcvdForTx(struct packet *p, gs_int64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->numOfPdcpPduRcvdForTx;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__numOfPdcpPduDiscarded(struct packet *p, gs_int64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->numOfPdcpPduDiscarded;
+       return 0;
+}
+
+static inline gs_retval_t get_lte_rb_thpt__drb_Id(struct packet *p, gs_int64_t *t){
+       *t = ((struct _lte_rb_thpt *)(p->record.packed.values))->drb_Id;
+       return 0;
+}
+
+#endif