Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudInstanceId ¶
func CloudInstanceId() string
func InterfaceAddrs ¶
func PublicAddress ¶
Types ¶
type DetailStat ¶
type DetailStat struct {
*SummaryStat
CpuModel []string
NetInterface []NetInterface
NetBytesRecv uint64
NetBytesSent uint64
DiskPartition []DiskPartition
DiskTotal uint64
DiskUsed uint64
SwapTotal uint64
SwapUsed uint64
}
func Detail ¶
func Detail(withAddr bool) *DetailStat
type DiskPartition ¶
type NetInterface ¶
type SummaryStat ¶
type SummaryStat struct {
CreateAt int64
HostId string
HostName string
Uptime uint64
OS string
Platform string
KernelArch string
CpuCore int
CpuCoreLogic int
CpuPercent []float64
MemoryTotal uint64
MemoryUsed uint64
PublicIpv4 string
PublicIpv6 string
}
func Summary ¶
func Summary(withAddr bool) *SummaryStat
func (*SummaryStat) From ¶
func (p *SummaryStat) From(s string)
func (*SummaryStat) String ¶
func (p *SummaryStat) String() string
Click to show internal directories.
Click to hide internal directories.