19 #ifndef _ASTERISK_STATSD_H 20 #define _ASTERISK_STATSD_H 32 #define AST_STATSD_GAUGE "g" 37 #define AST_STATSD_GUAGE AST_STATSD_GAUGE 39 #define AST_STATSD_COUNTER "c" 41 #define AST_STATSD_TIMER "ms" 43 #define AST_STATSD_HISTOGRAM "h" 45 #define AST_STATSD_METER "m" 61 const char *metric_type,
const char *
value,
double sample_rate), {});
83 (
const char *metric_name,
const char *metric_type,
const char *value,
double sample_rate, ...), {});
99 const char *metric_type, intmax_t value,
double sample_rate), {});
121 (
const char *metric_name,
const char *metric_type, intmax_t value,
double sample_rate, ...), {});
131 const char *metric_type, intmax_t value), {});
146 intmax_t value,
double sample_rate), {});
void ast_statsd_log_full_va(const char *metric_name, const char *metric_type, intmax_t value, double sample_rate,...)
Send a stat to the configured statsd server.
Optional API function macros.
void ast_statsd_log_full(const char *metric_name, const char *metric_type, intmax_t value, double sample_rate)
Send a stat to the configured statsd server.
#define AST_OPTIONAL_API(result, name, proto, stub)
Declare an optional API function.
void ast_statsd_log_string(const char *metric_name, const char *metric_type, const char *value, double sample_rate)
Send a stat to the configured statsd server.
void ast_statsd_log_sample(const char *metric_name, intmax_t value, double sample_rate)
Send a random sampling of a stat to the configured statsd server.
void ast_statsd_log(const char *metric_name, const char *metric_type, intmax_t value)
Send a stat to the configured statsd server.
#define AST_OPTIONAL_API_ATTR(result, attr, name, proto, stub)
Declare an optional API function with compiler attributes.
void ast_statsd_log_string_va(const char *metric_name, const char *metric_type, const char *value, double sample_rate,...)
Send a stat to the configured statsd server.
static snd_pcm_format_t format