#include <sync/common.h>
#include <junoscript/xmllib_pub.h>
#include <junoscript/xmlrpc.h>
#include <junoscript/xmlstr.h>
#include <ddl/defs.h>
#include "monitube2-mgmt_main.h"
#include "monitube2-mgmt_config.h"
#include "monitube2-mgmt_conn.h"
#include "monitube2-mgmt_logging.h"
Go to the source code of this file.
Functions | |
static int32_t | monitube_show_stats (mgmt_sock_t *msp, parse_status_t *csb UNUSED, char *unparsed UNUSED) |
static int32_t | monitube_clear_stats (mgmt_sock_t *msp, parse_status_t *csb UNUSED, char *unparsed UNUSED) |
Variables | |
static const parse_menu_t | show_sync_monitube_menu [] |
static const parse_menu_t | clear_sync_monitube_menu [] |
static const parse_menu_t | show_sync_menu [] |
static const parse_menu_t | clear_sync_menu [] |
static const parse_menu_t | show_menu [] |
static const parse_menu_t | clear_menu [] |
const parse_menu_t | master_menu [] |
Contains callback functions that get executed by commands on the router
Definition in file monitube2-mgmt_ui.c.
static int32_t monitube_clear_stats | ( | mgmt_sock_t * | msp, | |
parse_status_t *csb | UNUSED, | |||
char *unparsed | UNUSED | |||
) | [static] |
Clear cached stats for one monitor's config group or all of them
[in] | msp | management socket pointer |
[in] | csb | parsed info status (contains subcodes/arguments) |
[in] | unparsed | unparsed command string |
Definition at line 184 of file monitube2-mgmt_ui.c.
References clear_stats().
static int32_t monitube_show_stats | ( | mgmt_sock_t * | msp, | |
parse_status_t *csb | UNUSED, | |||
char *unparsed | UNUSED | |||
) | [static] |
Shows the monitube stats optionally just for one monitoring config group
[in] | msp | management socket pointer |
[in] | csb | parsed info status (contains subcodes/arguments) |
[in] | unparsed | unparsed command string |
Definition at line 62 of file monitube2-mgmt_ui.c.
References flowstat_s::flow_addr, flowstat_s::flow_port, ss_info_s::id, flowstat_s::last_mdi_df, flowstat_s::last_mdi_mlr, ss_info_s::name, next_flowstat(), next_flowstat_ss(), next_serviceset(), flowstat_s::reports, flowstat_ss_s::ssid, STATS_BASE_WINDOW, and flowstat_s::window_position.
const parse_menu_t clear_menu[] [static] |
Initial value:
{ { "sync", NULL, 0, clear_sync_menu, NULL }, { NULL, NULL, 0, NULL, NULL } }
Definition at line 257 of file monitube2-mgmt_ui.c.
const parse_menu_t clear_sync_menu[] [static] |
Initial value:
{ { "monitube", NULL, 0, clear_sync_monitube_menu, NULL }, { NULL, NULL, 0, NULL, NULL } }
Definition at line 241 of file monitube2-mgmt_ui.c.
const parse_menu_t clear_sync_monitube_menu[] [static] |
Initial value:
{ { "statistics", NULL, 0, NULL, monitube_clear_stats }, { NULL, NULL, 0, NULL, NULL } }
Definition at line 225 of file monitube2-mgmt_ui.c.
const parse_menu_t master_menu[] |
Initial value:
{ { "show", NULL, 0, show_menu, NULL }, { "clear", NULL, 0, clear_menu, NULL }, { NULL, NULL, 0, NULL, NULL } }
Definition at line 265 of file monitube2-mgmt_ui.c.
Referenced by main().
const parse_menu_t show_menu[] [static] |
Initial value:
{ { "sync", NULL, 0, show_sync_menu, NULL }, { NULL, NULL, 0, NULL, NULL } }
Definition at line 249 of file monitube2-mgmt_ui.c.
const parse_menu_t show_sync_menu[] [static] |
Initial value:
{ { "monitube", NULL, 0, show_sync_monitube_menu, NULL }, { NULL, NULL, 0, NULL, NULL } }
Definition at line 233 of file monitube2-mgmt_ui.c.
const parse_menu_t show_sync_monitube_menu[] [static] |
Initial value:
{ { "statistics", NULL, 0, NULL, monitube_show_stats }, { NULL, NULL, 0, NULL, NULL } }
Definition at line 217 of file monitube2-mgmt_ui.c.