srsLTE/lib/include/srsran/interfaces/enb_metrics_interface.h

75 lines
2.0 KiB
C
Raw Normal View History

/**
2021-03-28 14:12:42 -07:00
* Copyright 2013-2021 Software Radio Systems Limited
2017-06-02 03:46:06 -07:00
*
2021-04-22 01:59:40 -07:00
* This file is part of srsRAN.
2017-06-02 03:46:06 -07:00
*
2021-04-22 01:59:40 -07:00
* srsRAN is free software: you can redistribute it and/or modify
2021-03-28 14:12:42 -07:00
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
2021-04-22 01:59:40 -07:00
* srsRAN is distributed in the hope that it will be useful,
2021-03-28 14:12:42 -07:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
2017-06-02 03:46:06 -07:00
*
2021-03-28 14:12:42 -07:00
* A copy of the GNU Affero General Public License can be found in
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
2017-06-02 03:46:06 -07:00
*
*/
2021-03-19 03:45:56 -07:00
#ifndef SRSRAN_ENB_METRICS_INTERFACE_H
#define SRSRAN_ENB_METRICS_INTERFACE_H
#include <stdint.h>
#include "srsenb/hdr/common/common_enb.h"
#include "srsenb/hdr/phy/phy_metrics.h"
#include "srsenb/hdr/stack/mac/mac_metrics.h"
#include "srsenb/hdr/stack/rrc/rrc_metrics.h"
#include "srsenb/hdr/stack/upper/s1ap_metrics.h"
2021-03-19 03:45:56 -07:00
#include "srsran/common/metrics_hub.h"
#include "srsran/radio/radio_metrics.h"
#include "srsran/system/sys_metrics.h"
#include "srsran/upper/pdcp_metrics.h"
#include "srsran/upper/rlc_metrics.h"
#include "srsue/hdr/stack/upper/gw_metrics.h"
namespace srsenb {
2020-12-14 06:04:30 -08:00
struct rlc_metrics_t {
2021-03-19 03:45:56 -07:00
std::vector<srsran::rlc_metrics_t> ues;
2020-12-14 06:04:30 -08:00
};
2021-02-15 10:11:39 -08:00
struct pdcp_metrics_t {
2021-03-19 03:45:56 -07:00
std::vector<srsran::pdcp_metrics_t> ues;
2021-02-15 10:11:39 -08:00
};
struct stack_metrics_t {
mac_metrics_t mac;
rrc_metrics_t rrc;
2020-12-14 06:04:30 -08:00
rlc_metrics_t rlc;
2021-02-15 10:11:39 -08:00
pdcp_metrics_t pdcp;
s1ap_metrics_t s1ap;
};
struct enb_metrics_t {
2021-03-19 03:45:56 -07:00
srsran::rf_metrics_t rf;
std::vector<phy_metrics_t> phy;
stack_metrics_t stack;
2021-03-19 03:45:56 -07:00
srsran::sys_metrics_t sys;
bool running;
};
// ENB interface
2021-03-19 03:45:56 -07:00
class enb_metrics_interface : public srsran::metrics_interface<enb_metrics_t>
{
public:
virtual bool get_metrics(enb_metrics_t* m) = 0;
};
} // namespace srsenb
2021-03-19 03:45:56 -07:00
#endif // SRSRAN_ENB_METRICS_INTERFACE_H