Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
channel_metric_defs Struct Reference

Data Fields

void(*const get_value )(struct prometheus_metric *metric, struct ast_channel_snapshot *snapshot)
 Callback function to generate a metric value for a given channel. More...
 
const char * help
 Help text to display. More...
 
const char * name
 Name of the metric. More...
 

Detailed Description

Definition at line 69 of file channels.c.

Field Documentation

◆ get_value

void(* const get_value) (struct prometheus_metric *metric, struct ast_channel_snapshot *snapshot)

Callback function to generate a metric value for a given channel.

Definition at line 81 of file channels.c.

Referenced by channels_scrape_cb().

◆ help

const char* help

Help text to display.

Definition at line 73 of file channels.c.

Referenced by channels_scrape_cb().

◆ name

const char* name

Name of the metric.

Definition at line 77 of file channels.c.

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


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