TSG-21855 使用fieldstat4序列化Intercept Policy的metric并输出到kafka
This commit is contained in:
23
common/include/metrics.h
Normal file
23
common/include/metrics.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user