v1.15.0
This commit is contained in:
@@ -46,6 +46,9 @@ type RecordResource struct {
|
||||
// Number of GPU
|
||||
GPU uint64 `json:"gpu"`
|
||||
|
||||
// Policies
|
||||
Policies map[string]PolicyUsage `json:"policies"`
|
||||
|
||||
// Number of RAM
|
||||
RAM uint64 `json:"ram"`
|
||||
|
||||
@@ -62,14 +65,17 @@ type DiskUsage struct {
|
||||
DiskSizeMax float64 `json:"disksizemax"`
|
||||
}
|
||||
|
||||
// Policy usage details
|
||||
type PolicyUsage struct {
|
||||
// Disk usage
|
||||
DiskUsage
|
||||
|
||||
// SEPs
|
||||
SEPs map[string]map[string]DiskUsage `json:"seps"`
|
||||
}
|
||||
|
||||
// Detailed information about grid
|
||||
type RecordGrid struct {
|
||||
// CKey
|
||||
CKey string `json:"_ckey"`
|
||||
|
||||
// Meta
|
||||
Meta []interface{} `json:"_meta"`
|
||||
|
||||
// AuthBroker
|
||||
AuthBroker []interface{} `json:"authBroker"`
|
||||
|
||||
@@ -97,6 +103,9 @@ type RecordGrid struct {
|
||||
// SDN support
|
||||
SDNSupport bool `json:"sdn_support"`
|
||||
|
||||
// Is Zero Access enabled
|
||||
ZeroAccessEnabled bool `json:"zeroaccess_enabled"`
|
||||
|
||||
// Is BRO enabled
|
||||
BROEnabled bool `json:"bro_enabled"`
|
||||
}
|
||||
@@ -166,6 +175,15 @@ type RecordSettingsGrid struct {
|
||||
//Cleanup retention period
|
||||
CleanupRetentionPeriod uint64 `json:"cleanupRetentionPeriod"`
|
||||
|
||||
// CPU allocation ratio
|
||||
CPUAllocationRatio uint64 `json:"cpu_allocation_ratio"`
|
||||
|
||||
// CPU allocation ratio for VMs
|
||||
CPUAllocationRatioVM uint64 `json:"cpu_allocation_ratio_vm"`
|
||||
|
||||
// Custom backup path
|
||||
CustomBackupPath []string `json:"custom_backup_path"`
|
||||
|
||||
//Docker registry
|
||||
DockerRegistry DockerRegistry `json:"docker_registry"`
|
||||
|
||||
@@ -178,6 +196,9 @@ type RecordSettingsGrid struct {
|
||||
//Healthcheck notifications
|
||||
HealthcheckNotifications HealthcheckNotifications `json:"healthcheck_notifications"`
|
||||
|
||||
// Interface generation scheme
|
||||
InterfaceGenerationScheme string `json:"interface_generation_scheme"`
|
||||
|
||||
//k8s cleanup enabled
|
||||
K8sCleanupEnabled bool `json:"k8s_cleanup_enabled"`
|
||||
|
||||
@@ -187,12 +208,21 @@ type RecordSettingsGrid struct {
|
||||
//Location url
|
||||
LocationURL string `json:"location_url"`
|
||||
|
||||
// MAC address prefix
|
||||
MACAddressPrefix string `json:"mac_address_prefix"`
|
||||
|
||||
//Net QOS
|
||||
NetQOS NetQOS `json:"net_qos"`
|
||||
|
||||
//Networks
|
||||
Networks string `json:"networks"`
|
||||
|
||||
// Node self stop timer uptime monitor
|
||||
NodeSelfStopTimerUptimeMonitor uint64 `json:"nodeSelfStopTimerUptimeMonitor"`
|
||||
|
||||
// Node self stop uptime monitor
|
||||
NodeSelfStopUptimeMonitor bool `json:"nodeSelfStopUptimeMonitor"`
|
||||
|
||||
//Prometheus
|
||||
Prometheus Prometheus `json:"prometheus"`
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ type SetCPUAllocationRatioRequest struct {
|
||||
|
||||
// Allocation ratio
|
||||
// Required: true
|
||||
Ratio float64 `url:"ratio" json:"ratio" validate:"required"`
|
||||
Ratio uint64 `url:"ratio" json:"ratio" validate:"required"`
|
||||
}
|
||||
|
||||
// SetCPUAllocationRatio sets CPU allocation ratio
|
||||
|
||||
@@ -15,7 +15,7 @@ type SetCPUAllocationRatioForVMRequest struct {
|
||||
|
||||
// Default CPU allocation ratio for computes
|
||||
// Required: true
|
||||
Ratio float64 `url:"ratio" json:"ratio" validate:"required"`
|
||||
Ratio uint64 `url:"ratio" json:"ratio" validate:"required"`
|
||||
}
|
||||
|
||||
// SetCPUAllocationRatioForVM sets CPU allocation ratio for computes
|
||||
|
||||
@@ -16,7 +16,7 @@ type SetMemAllocationRatioRequest struct {
|
||||
|
||||
// Allocation ratio
|
||||
// Required: true
|
||||
Ratio float64 `url:"ratio" json:"ratio" validate:"required"`
|
||||
Ratio uint64 `url:"ratio" json:"ratio" validate:"required"`
|
||||
}
|
||||
|
||||
// SetMemAllocationRatio sets memory allocation ratio
|
||||
|
||||
Reference in New Issue
Block a user