37 lines
803 B
Go
37 lines
803 B
Go
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"`
|
|
}
|