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" 
   48#define AST_STATSD_METER "m" 
   65    const char *metric_type, 
const char *
value, 
double sample_rate), {});
 
   87    (
const char *metric_name, 
const char *metric_type, 
const char *
value, 
double sample_rate, ...), {});
 
  103    const char *metric_type, intmax_t 
value, 
double sample_rate), {});
 
  125    (
const char *metric_name, 
const char *metric_type, intmax_t 
value, 
double sample_rate, ...), {});
 
  135    const char *metric_type, intmax_t 
value), {});
 
  150        intmax_t 
value, 
double sample_rate), {});
 
Optional API function macros.
#define AST_OPTIONAL_API_ATTR(result, attr, name, proto, stub)
Declare an optional API function with compiler attributes.
#define AST_OPTIONAL_API(result, name, proto, stub)
Declare an optional API function.
void AST_OPTIONAL_API_NAME() 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.
void AST_OPTIONAL_API_NAME() 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.
void AST_OPTIONAL_API_NAME() 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_OPTIONAL_API_NAME() 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_OPTIONAL_API_NAME() 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.
void AST_OPTIONAL_API_NAME() ast_statsd_log(const char *metric_name, const char *metric_type, intmax_t value)
Send a stat to the configured statsd server.