mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
[Release-17] Upgrade SBI to v17.x.0
This commit is contained in:
parent
969c116e77
commit
4d44b1843e
1687 changed files with 121604 additions and 9310 deletions
76
lib/sbi/openapi/model/threshold_level.h
Normal file
76
lib/sbi/openapi/model/threshold_level.h
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* threshold_level.h
|
||||
*
|
||||
* Represents a threshold level.
|
||||
*/
|
||||
|
||||
#ifndef _OpenAPI_threshold_level_H_
|
||||
#define _OpenAPI_threshold_level_H_
|
||||
|
||||
#include <string.h>
|
||||
#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_ */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue