Documentation ¶
Index ¶
Constants ¶
View Source
const ( DomainStatsVersion = "v1" // VIR_VCPU_OFFLINE = 0, /* the virtual CPU is offline */ VCPUOffline = 0 // VIR_VCPU_RUNNING = 1, /* the virtual CPU is running */ VCPURunning = 1 // VIR_VCPU_BLOCKED = 2, /* the virtual CPU is blocked on resource */ VCPUBlocked = 2 )
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 // omitted from libvirt-go: Perf // extra stats CPUMapSet bool CPUMap [][]bool }
type DomainStatsBlock ¶
type DomainStatsBlock struct { NameSet bool Name string Alias 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 MajorFaultSet bool MajorFault uint64 MinorFaultSet bool MinorFault uint64 UsableSet bool Usable uint64 TotalSet bool Total uint64 }
mimic existing structs, but data is taken from DomainMemoryStat
type DomainStatsNet ¶
type DomainStatsNet struct { NameSet bool Name string AliasSet bool Alias string RxBytesSet bool RxBytes uint64 RxPktsSet bool RxPkts uint64 RxErrsSet bool RxErrs uint64 RxDropSet bool RxDrop uint64 TxBytesSet bool TxBytes uint64 TxPktsSet bool TxPkts uint64 TxErrsSet bool TxErrs uint64 TxDropSet bool TxDrop uint64 }
Click to show internal directories.
Click to hide internal directories.