Teonet library
0.4.7
|
#include <netinet/in.h>
Go to the source code of this file.
Data Structures | |
struct | teoMetricClass |
Typedefs | |
typedef struct teoMetricClass | teoMetricClass |
Functions | |
teoMetricClass * | teoMetricInit (void *ke) |
Initialize Metrics module. More... | |
void | teoMetricDestroy (teoMetricClass *tm) |
Destroy Metrics module. More... | |
void | teoMetricCounter (teoMetricClass *tm, const char *name, int value) |
Send counter teonet metric. More... | |
void | teoMetricCounterf (teoMetricClass *tm, const char *name, double value) |
Send counter teonet metric. More... | |
void | teoMetricMs (teoMetricClass *tm, const char *name, double value) |
Send time(ms) teonet metric. More... | |
void | teoMetricGauge (teoMetricClass *tm, const char *name, int value) |
Send gauge teonet metrics. More... | |
void | teoMetricGaugef (teoMetricClass *tm, const char *name, double value) |
Send gauge teonet metrics. More... | |
typedef struct teoMetricClass teoMetricClass |
void teoMetricCounter | ( | teoMetricClass * | tm, |
const char * | name, | ||
int | value | ||
) |
Send counter teonet metric.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics counter value |
Referenced by metric_teonet_count(), and teo::Teonet::metricCounter().
void teoMetricCounterf | ( | teoMetricClass * | tm, |
const char * | name, | ||
double | value | ||
) |
Send counter teonet metric.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics counter value |
Referenced by teo::Teonet::metricCounter().
void teoMetricDestroy | ( | teoMetricClass * | tm | ) |
Destroy Metrics module.
tm | Pointer to teoMetricClass |
References free().
Referenced by modules_destroy().
void teoMetricGauge | ( | teoMetricClass * | tm, |
const char * | name, | ||
int | value | ||
) |
Send gauge teonet metrics.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics gauge value |
Referenced by cmd_disconnected_cb(), metric_teonet_count(), and teo::Teonet::metricGauge().
void teoMetricGaugef | ( | teoMetricClass * | tm, |
const char * | name, | ||
double | value | ||
) |
Send gauge teonet metrics.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics gauge value |
Referenced by ksnetArpMetrics(), and teo::Teonet::metricGauge().
teoMetricClass* teoMetricInit | ( | void * | kep | ) |
Initialize Metrics module.
kep | Pointer to ksnetEvMgrClass |
References teoMetricClass::ke, ke, ksn_printf, malloc(), MESSAGE, MODULE, teonet_cfg::statsd_ip, teonet_cfg::statsd_port, ksnetEvMgrClass::teo_cfg, and teoMetricClass::to.
Referenced by modules_init().
void teoMetricMs | ( | teoMetricClass * | tm, |
const char * | name, | ||
double | value | ||
) |
Send time(ms) teonet metric.
tm | Pointer to teoMetricClass |
name | Metrics name |
value | Metrics ms value |
Referenced by teo::Teonet::metricMs().