Saved Host Overview

@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

Author

N7ghtm4r3 - Tecknobit

See also

Constructors

Link copied to clipboard
constructor(id: String, name: String, hostAddress: String, status: HostStatus, cpuUsage: CpuUsage, memoryUsage: MemoryUsage, storageUsage: StorageUsage, history: List<SavedHostOverview.HostHistoryEvent> = emptyList())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
data class HostHistoryEvent(val id: String, val type: HostEventType, val eventDate: Long, val extra: JsonElement? = null)

The HostHistoryEvent class represent the information related to a host event

Properties

Link copied to clipboard
@SerialName(value = "cpu_usage" )
val cpuUsage: CpuUsage

The current usage of the CPU

Link copied to clipboard
@SerialName(value = "host_events" )
val history: List<SavedHostOverview.HostHistoryEvent>

The history of the host lifecycle

Link copied to clipboard
@SerialName(value = "host_address" )
open override val hostAddress: String

The address of the host

Link copied to clipboard
open override val id: String

The identifier of the host

Link copied to clipboard
@SerialName(value = "memory_usage" )
val memoryUsage: MemoryUsage

The current usage of the RAM memory

Link copied to clipboard
open override val name: String

The name of the host

Link copied to clipboard
open override var status: HostStatus

The status of the host

Link copied to clipboard
@SerialName(value = "storage_usage" )
val storageUsage: StorageUsage

The current usage of the storage