This commit is contained in:
2026-10-16 15:23:28 +03:00
parent 8cde0e9371
commit 84164a72a4
32 changed files with 1019 additions and 260 deletions

View 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"`
}