24 lines
480 B
C
24 lines
480 B
C
|
|
#ifndef _METRICS_H
|
||
|
|
#define _METRICS_H
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C"
|
||
|
|
{
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#include "kafka.h"
|
||
|
|
#include "tfe_packet_io.h"
|
||
|
|
|
||
|
|
struct metrics *metrics_create(const char *profile, struct kafka *kfk);
|
||
|
|
void metrics_destory(struct metrics *handle);
|
||
|
|
|
||
|
|
void metrics_single_session_output(struct session_node *node, void *ctx);
|
||
|
|
void metrics_all_session_output(struct packet_io_thread_ctx *thread_ctx);
|
||
|
|
int metrics_get_interval(struct metrics *handle);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|