Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
prometheus_metrics_provider Struct Reference

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...
 

Detailed Description

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 94 of file res_prometheus.h.

Field Documentation

◆ name

const char* name

Handy name of the provider for debugging purposes.

Definition at line 98 of file res_prometheus.h.

Referenced by ast_sip_api_provider_register(), PathSegment::get_child(), Parameter::load(), Property::load(), SwaggerType::load(), and reload_module().

◆ reload_cb

int(*const reload_cb) (struct prometheus_general_config *config)

Reload callback.

Parameters
configThe reloaded config
Return values
0success
-1error

Definition at line 107 of file res_prometheus.h.

Referenced by reload_module().

◆ unload_cb

void(*const unload_cb) (void)

Unload callback.

Definition at line 111 of file res_prometheus.h.

Referenced by unload_module().


The documentation for this struct was generated from the following file: