Philipp Maier | c66ab2c | 2020-06-02 20:55:34 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | /* NOTE: When adding counters, also the dump_ratectr_* routines in vty.c must be updated. */ |
| 4 | |
| 5 | struct mgcp_ratectr_global { |
| 6 | /* Rate counter group which contains stats for generic MGCP events. */ |
| 7 | struct rate_ctr_group *mgcp_general_ctr_group; |
| 8 | }; |
| 9 | |
| 10 | struct mgcp_ratectr_trunk { |
| 11 | /* Rate counter group which contains stats for processed CRCX commands. */ |
| 12 | struct rate_ctr_group *mgcp_crcx_ctr_group; |
| 13 | /* Rate counter group which contains stats for processed MDCX commands. */ |
| 14 | struct rate_ctr_group *mgcp_mdcx_ctr_group; |
| 15 | /* Rate counter group which contains stats for processed DLCX commands. */ |
| 16 | struct rate_ctr_group *mgcp_dlcx_ctr_group; |
| 17 | /* Rate counter group which aggregates stats of individual RTP connections. */ |
| 18 | struct rate_ctr_group *all_rtp_conn_stats; |
| 19 | }; |
| 20 | |
| 21 | int mgcp_ratectr_global_alloc(void *ctx, struct mgcp_ratectr_global *ratectr); |
| 22 | int mgcp_ratectr_trunk_alloc(void *ctx, struct mgcp_ratectr_trunk *ratectr); |