Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CpuUsage(val usageValue: Double, val clock: Double) : SavedHostStats

The CpuUsage class represents the statistic related to the current CPU usage

Link copied to clipboard
@Serializable
data class HostService(val id: String, val name: String, var pid: Long, var status: ServiceStatus, val configuration: HostService.ServiceConfiguration, val events: List<HostService.ServiceEvent> = emptyList(), val insertionDate: Long)

The HostService class represent the information about a service

Link copied to clipboard
@Serializable
data class MemoryUsage(val usageValue: Double, val totalValue: Double, val percentValue: Double) : SavedHostStats

The MemoryUsage class represents the statistic related to the current Memory usage

Link copied to clipboard
@Serializable
data class SavedHostOverview(val id: String, val name: String, val hostAddress: String, var status: HostStatus, val cpuUsage: CpuUsage, val memoryUsage: MemoryUsage, val storageUsage: StorageUsage, val history: List<SavedHostOverview.HostHistoryEvent> = emptyList()) : SavedHost

The SavedHostOverview class represent the statistic of a host overview

Link copied to clipboard
@Serializable
sealed interface SavedHostStats

The SavedHostStats interface is useful to contains the statistic about a host

Link copied to clipboard
@Serializable
data class StorageUsage(val usageValue: Double, val totalValue: Double, val percentValue: Double, val type: StorageType) : SavedHostStats

The StorageUsage class represents the statistic related to the current storage usage