Asterisk - The Open Source Telephony Project GIT-master-b023714
|
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/stasis_endpoints.h"
#include "asterisk/stasis_message_router.h"
#include "asterisk/statsd.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static void | cache_update_cb (void *data, struct stasis_subscription *sub, struct stasis_message *message) |
static int | dump_cache_load (void *obj, void *arg, int flags) |
static int | dump_cache_unload (void *obj, void *arg, int flags) |
static void | handle_endpoint_update (struct ast_endpoint_snapshot *old_snapshot, struct ast_endpoint_snapshot *new_snapshot) |
static int | load_module (void) |
static int | unload_module (void) |
static void | update_endpoint_state (struct ast_endpoint_snapshot *snapshot, const char *delta) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Endpoint statistics" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .requires = "res_statsd" } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct stasis_message_router * | router |
Statsd Endpoint stats. | |
|
static |
Definition at line 155 of file res_endpoint_stats.c.
|
static |
Definition at line 155 of file res_endpoint_stats.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 155 of file res_endpoint_stats.c.
|
static |
Definition at line 78 of file res_endpoint_stats.c.
References ast_endpoint_snapshot_type(), handle_endpoint_update(), stasis_message_data(), and update().
Referenced by load_module().
|
static |
Definition at line 95 of file res_endpoint_stats.c.
References handle_endpoint_update(), NULL, and stasis_message_data().
Referenced by load_module().
|
static |
Definition at line 105 of file res_endpoint_stats.c.
References handle_endpoint_update(), NULL, and stasis_message_data().
Referenced by unload_module().
|
static |
Definition at line 60 of file res_endpoint_stats.c.
References AST_STATSD_GAUGE, ast_statsd_log_full_va(), ast_statsd_log_string(), ast_endpoint_snapshot::num_channels, ast_endpoint_snapshot::resource, ast_endpoint_snapshot::state, ast_endpoint_snapshot::tech, and update_endpoint_state().
Referenced by cache_update_cb(), dump_cache_load(), and dump_cache_unload().
|
static |
Definition at line 115 of file res_endpoint_stats.c.
References ao2_callback, ao2_ref, ast_endpoint_cache(), ast_endpoint_snapshot_type(), ast_endpoint_topic_all_cached(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, cache_update_cb(), dump_cache_load(), endpoints, NULL, OBJ_MULTIPLE, OBJ_NODATA, OBJ_NOLOCK, router, stasis_cache_dump(), stasis_cache_update_type(), stasis_message_router_add(), and stasis_message_router_create.
|
static |
Definition at line 134 of file res_endpoint_stats.c.
References ao2_callback, ao2_ref, ast_endpoint_cache(), ast_endpoint_snapshot_type(), dump_cache_unload(), endpoints, NULL, OBJ_MULTIPLE, OBJ_NODATA, OBJ_NOLOCK, router, stasis_cache_dump(), and stasis_message_router_unsubscribe_and_join().
|
static |
Definition at line 45 of file res_endpoint_stats.c.
References AST_ENDPOINT_OFFLINE, AST_ENDPOINT_ONLINE, AST_ENDPOINT_UNKNOWN, AST_STATSD_GAUGE, ast_statsd_log_string(), and ast_endpoint_snapshot::state.
Referenced by handle_endpoint_update().
|
static |
Definition at line 155 of file res_endpoint_stats.c.
|
static |
Definition at line 155 of file res_endpoint_stats.c.
|
static |
Statsd Endpoint stats.
This module subscribes to Stasis endpoints and send statistics based on their state.
Stasis message router
Definition at line 43 of file res_endpoint_stats.c.
Referenced by load_module(), and unload_module().