Files
decort-golang-sdk/pkg/cloudbroker/basismpm/models.go

37 lines
803 B
Go
Raw Normal View History

2026-10-16 15:23:28 +03:00
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"`
}