aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-08-29 13:31:05 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-09-05 16:24:18 +0200
commit08de290aa8928ce18019c5cc0f85bdf08f27d7bc (patch)
treed4a99ce6573b8e101be524aabecb09cb31bb2da8 /include
parent3da59936be660dfc11e393a659ea57cd35a46bb3 (diff)
add stat_items for BTS and TRX connection stati
So far we have stat items per BTS. Add stat items summing overall BTS status. Add stat items: - num_bts:oml_connected - num_bts:all_trx_rsl_connected - num_bts:total - num_trx:rsl_connected - num_trx:total Related: SYS#5542 Related: Ic1b35b7406547f92818afe399a2383d154576409 (osmo-ttcn3-hacks) Change-Id: I2057a798e681a169cc03243a09b3d6449734c010
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/bsc_stats.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/bsc/bsc_stats.h b/include/osmocom/bsc/bsc_stats.h
index 639f87fd8..4250079bf 100644
--- a/include/osmocom/bsc/bsc_stats.h
+++ b/include/osmocom/bsc/bsc_stats.h
@@ -21,6 +21,7 @@
#include <osmocom/core/rate_ctr.h>
struct osmo_stat_item_group_desc;
+struct gsm_network;
/* OsmoBSC rate_ctr indexes */
enum {
@@ -87,7 +88,11 @@ extern const struct rate_ctr_group_desc bsc_ctrg_desc;
/* OsmoBSC stat_item indexes */
enum {
+ BSC_STAT_NUM_BTS_OML_CONNECTED,
+ BSC_STAT_NUM_BTS_ALL_TRX_RSL_CONNECTED,
BSC_STAT_NUM_BTS_TOTAL,
+ BSC_STAT_NUM_TRX_RSL_CONNECTED,
+ BSC_STAT_NUM_TRX_TOTAL,
BSC_STAT_NUM_MSC_CONNECTED,
BSC_STAT_NUM_MSC_TOTAL,
};
@@ -98,3 +103,5 @@ enum {
#define BTS_STAT_IDX_UNKNOWN (UINT16_MAX + 1)
extern const struct osmo_stat_item_group_desc bsc_statg_desc;
+
+void bsc_update_connection_stats(struct gsm_network *net);