Documentation ¶
Index ¶
Constants ¶
View Source
const (
DomainStatsVersion = "v1"
)
For versioning of the virt-handler and -launcher communication, you need to increase the Version const when making changes, and make necessary changes in the cmd rpc implementation!
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainStats ¶
type DomainStats struct { // the following aren't really needed for stats, but it's practical to report // OTOH, the whole "Domain" is too much data to be unconditionally reported Name string UUID string // omitted from libvirt-go: Domain // omitted from libvirt-go: State Cpu *DomainStatsCPU // new, see below Memory *DomainStatsMemory // omitted from libvirt-go: Balloon Vcpu []DomainStatsVcpu Net []DomainStatsNet Block []DomainStatsBlock }
type DomainStatsBlock ¶
type DomainStatsBlock struct { NameSet bool Name string BackingIndexSet bool BackingIndex uint PathSet bool Path string RdReqsSet bool RdReqs uint64 RdBytesSet bool RdBytes uint64 RdTimesSet bool RdTimes uint64 WrReqsSet bool WrReqs uint64 WrBytesSet bool WrBytes uint64 WrTimesSet bool WrTimes uint64 FlReqsSet bool FlReqs uint64 FlTimesSet bool FlTimes uint64 ErrorsSet bool Errors uint64 AllocationSet bool Allocation uint64 CapacitySet bool Capacity uint64 PhysicalSet bool Physical uint64 }
type DomainStatsCPU ¶
type DomainStatsMemory ¶
type DomainStatsMemory struct { UnusedSet bool Unused uint64 AvailableSet bool Available uint64 ActualBalloonSet bool ActualBalloon uint64 RSSSet bool RSS uint64 SwapInSet bool SwapIn uint64 SwapOutSet bool SwapOut uint64 }
mimic existing structs, but data is taken from DomainMemoryStat
type DomainStatsNet ¶
Click to show internal directories.
Click to hide internal directories.