/* * threshold_level.h * * Represents a threshold level. */ #ifndef _OpenAPI_threshold_level_H_ #define _OpenAPI_threshold_level_H_ #include #include "../external/cJSON.h" #include "../include/list.h" #include "../include/keyValuePair.h" #include "../include/binary.h" #ifdef __cplusplus extern "C" { #endif typedef struct OpenAPI_threshold_level_s OpenAPI_threshold_level_t; typedef struct OpenAPI_threshold_level_s { bool is_cong_level; int cong_level; bool is_nf_load_level; int nf_load_level; bool is_nf_cpu_usage; int nf_cpu_usage; bool is_nf_memory_usage; int nf_memory_usage; bool is_nf_storage_usage; int nf_storage_usage; char *avg_traffic_rate; char *max_traffic_rate; bool is_avg_packet_delay; int avg_packet_delay; bool is_max_packet_delay; int max_packet_delay; bool is_avg_packet_loss_rate; int avg_packet_loss_rate; bool is_svc_exp_level; float svc_exp_level; } OpenAPI_threshold_level_t; OpenAPI_threshold_level_t *OpenAPI_threshold_level_create( bool is_cong_level, int cong_level, bool is_nf_load_level, int nf_load_level, bool is_nf_cpu_usage, int nf_cpu_usage, bool is_nf_memory_usage, int nf_memory_usage, bool is_nf_storage_usage, int nf_storage_usage, char *avg_traffic_rate, char *max_traffic_rate, bool is_avg_packet_delay, int avg_packet_delay, bool is_max_packet_delay, int max_packet_delay, bool is_avg_packet_loss_rate, int avg_packet_loss_rate, bool is_svc_exp_level, float svc_exp_level ); void OpenAPI_threshold_level_free(OpenAPI_threshold_level_t *threshold_level); OpenAPI_threshold_level_t *OpenAPI_threshold_level_parseFromJSON(cJSON *threshold_levelJSON); cJSON *OpenAPI_threshold_level_convertToJSON(OpenAPI_threshold_level_t *threshold_level); OpenAPI_threshold_level_t *OpenAPI_threshold_level_copy(OpenAPI_threshold_level_t *dst, OpenAPI_threshold_level_t *src); #ifdef __cplusplus } #endif #endif /* _OpenAPI_threshold_level_H_ */