Asterisk - The Open Source Telephony Project
18.5.0
|
A function table for a metrics provider. More...
#include <res_prometheus.h>
Data Fields | |
const char * | name |
Handy name of the provider for debugging purposes. More... | |
int(*const | reload_cb )(struct prometheus_general_config *config) |
Reload callback. More... | |
void(*const | unload_cb )(void) |
Unload callback. More... | |
A function table for a metrics provider.
It's generally nice to separate out things that provide metrics from the core of this module. For those that want to be notified when things happen in the core module, they can provide an instance of this function table using prometheus_metrics_provider_register
and be notified when module affecting changes occur.
Definition at line 96 of file res_prometheus.h.
const char* name |
Handy name of the provider for debugging purposes.
Definition at line 100 of file res_prometheus.h.
Referenced by PathSegment::get_child(), Parameter::load(), SwaggerType::load(), Property::load(), and reload_module().
int(* const reload_cb) (struct prometheus_general_config *config) |
Reload callback.
config | The reloaded config |
0 | success |
-1 | error |
Definition at line 109 of file res_prometheus.h.
Referenced by reload_module().
void(* const unload_cb) (void) |