v1.16.8
This commit is contained in:
36
pkg/cloudbroker/basismpm/models.go
Normal file
36
pkg/cloudbroker/basismpm/models.go
Normal file
@@ -0,0 +1,36 @@
|
||||
package basismpm
|
||||
|
||||
type MemInfo struct {
|
||||
// Total amount of memory
|
||||
MemTotal string `json:"MemTotal"`
|
||||
|
||||
// Amount of free memory
|
||||
MemFree string `json:"MemFree"`
|
||||
|
||||
// Amount of available memory
|
||||
MemAvailable string `json:"MemAvailable"`
|
||||
|
||||
// Amount of available memory (in percent)
|
||||
MemAvailablePercent float64 `json:"MemAvailablePercent"`
|
||||
}
|
||||
|
||||
// Basis MPM service status
|
||||
type RecordBasisMPM struct {
|
||||
// Whether the service is installed
|
||||
ServiceInstalled bool `json:"service_installed"`
|
||||
|
||||
// Whether the config exists
|
||||
ConfigExists bool `json:"config_exists"`
|
||||
|
||||
// Whether the service is active
|
||||
ServiceActive bool `json:"service_active"`
|
||||
|
||||
// Service state
|
||||
ServiceState string `json:"service_state"`
|
||||
|
||||
// Config
|
||||
Config interface{} `json:"config"`
|
||||
|
||||
// Memory info
|
||||
MemInfo MemInfo `json:"meminfo"`
|
||||
}
|
||||
Reference in New Issue
Block a user