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

@@ -8,7 +8,7 @@ extern "C"
#include "policy.h"
void health_check_session_init(const char *profile);
void health_check_session_init(const char *profile, struct kafka *kfk);
// return 0 : success
// return -1 : key exist
@@ -17,7 +17,7 @@ uint64_t health_check_session_add(int profile_id, int vsys_id, const struct heal
// return 0 : success
// return -1 : key not exist
int health_check_session_del(uint64_t session_id, int profile_id);
int health_check_session_del(uint64_t session_id, int profile_id, int vsys_id);
// return 1 : active
// return 0 : inactive

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
}