feature: TSG-21852 service_function_status support fieldstat4

This commit is contained in:
luwenpeng
2024-07-19 10:02:07 +08:00
parent 9e63902c0d
commit c8d40f1347
15 changed files with 222 additions and 229 deletions

View File

@@ -6,17 +6,21 @@ extern "C"
{
#endif
#include "kafka.h"
#include <stdint.h>
#include "uthash.h"
struct sf_status *sf_status_create(const char *profile);
struct sf_status_key
{
uint32_t vsys_id;
uint32_t sf_profile_id;
};
struct sf_status *sf_status_create(const char *profile, struct kafka *kfk);
void sf_status_destory(struct sf_status *handle);
void sf_status_reset(struct sf_status *handle);
void sf_status_delete(struct sf_status *handle, int sf_profile_id);
void sf_status_update(struct sf_status *handle, int sf_vsys_id, int sf_profile_id, int sf_status, int sf_latency);
void sf_status_send(struct sf_status *handle);
int sf_status_get_interval(struct sf_status *handle);
void sf_status_delete(struct sf_status *handle, const struct sf_status_key *key);
void sf_status_update(struct sf_status *handle, const struct sf_status_key *key, int sf_status, int sf_latency);
void sf_status_output(struct sf_status *handle);
int sf_status_get_ouput_interval_ms(struct sf_status *handle);
#ifdef __cplusplus
}