Documentation
¶
Index ¶
- type BuildSight
- type BuildSightConfig
- type CgroupDocker
- type CgroupMem
- type CodeSight
- type CodeSightConfig
- type CpuStat
- type CpuTime
- type DiskPartition
- type DiskStat
- type DiskUsage
- type DockerStat
- type HostStat
- type LoadAvg
- type LoadMisc
- type LoadStat
- type MemStat
- type MemSwapDevice
- type MemSwapMemory
- type MemVirtual
- type NetInterface
- type NetIo
- type NetStat
- type NodeInfo
- type NodeReport
- type NodeSight
- type NodeSightConfig
- type NodeStat
- type ProcessInfo
- type ProcessMemoryInfo
- type ProcessRlimit
- type ProcessStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildSight ¶
type BuildSight interface {
Init(context.Context) error
Deinit(context.Context) error
Run(context.Context) error
}
func BuildSightNew ¶
func BuildSightNew(_ context.Context, cfg *BuildSightConfig) BuildSight
type BuildSightConfig ¶
type BuildSightConfig struct {
Config config.Config
Logger hclog.Logger
Gpt gpt.Gpt
Repo repo.Repo
Review review.Review
}
func DefaultBuildSightConfig ¶
func DefaultBuildSightConfig() *BuildSightConfig
type CgroupDocker ¶ added in v0.5.0
type CodeSight ¶
type CodeSight interface {
Init(context.Context) error
Deinit(context.Context) error
Run(context.Context) error
}
func CodeSightNew ¶
func CodeSightNew(_ context.Context, cfg *CodeSightConfig) CodeSight
type CodeSightConfig ¶
type CodeSightConfig struct {
Config config.Config
Logger hclog.Logger
Gpt gpt.Gpt
Repo repo.Repo
Review review.Review
}
func DefaultCodeSightConfig ¶
func DefaultCodeSightConfig() *CodeSightConfig
type DiskPartition ¶ added in v0.5.0
type DiskStat ¶ added in v0.5.0
type DiskStat struct {
DiskPartitions []DiskPartition
DiskUsages []DiskUsage
}
type DockerStat ¶ added in v0.5.0
type DockerStat struct {
ContainerIds []string
CgroupCpuDockerUsages []float64
CgroupCpuUsages []float64
CgroupDockers []CgroupDocker
CgroupMems []CgroupMem
}
type MemStat ¶ added in v0.5.0
type MemStat struct {
MemSwapDevices []MemSwapDevice
MemSwapMemory MemSwapMemory
MemVirtual MemVirtual
}
type MemSwapDevice ¶ added in v0.5.0
type MemSwapMemory ¶ added in v0.5.0
type MemVirtual ¶ added in v0.5.0
type MemVirtual struct {
Total uint64
Available uint64
Used uint64
UsedPercent float64
Free uint64
Buffer uint64
Cached uint64
SwapCached uint64
SwapTotal uint64
SwapFree uint64
Mapped uint64
VmallocTotal uint64
VmallocUsed uint64
VmallocChunk uint64
HugePagesTotal uint64
HugePagesFree uint64
HugePagesRsvd uint64
HugePagesSurp uint64
HugePageSize uint64
AnonHugePage uint64
}
type NetInterface ¶ added in v0.5.0
type NetStat ¶ added in v0.5.0
type NetStat struct {
NetIos []NetIo
NetInterfaces []NetInterface
}
type NodeInfo ¶ added in v0.5.0
type NodeInfo struct {
NodeStat NodeStat
NodeReport NodeReport
}
type NodeReport ¶ added in v0.5.0
type NodeSight ¶ added in v0.5.0
type NodeSight interface {
Init(context.Context) error
Deinit(context.Context) error
Run(context.Context) (NodeInfo, error)
}
func NodeSightNew ¶ added in v0.5.0
func NodeSightNew(_ context.Context, cfg *NodeSightConfig) NodeSight
type NodeSightConfig ¶ added in v0.5.0
func DefaultNodeSightConfig ¶ added in v0.5.0
func DefaultNodeSightConfig() *NodeSightConfig
type NodeStat ¶ added in v0.5.0
type NodeStat struct {
Host string
CpuStat CpuStat
DiskStat DiskStat
DockerStat DockerStat
HostStat HostStat
LoadStat LoadStat
MemStat MemStat
NetStat NetStat
ProcessStat ProcessStat
}
type ProcessInfo ¶ added in v0.5.0
type ProcessInfo struct {
Background bool
CpuPercent float64
Children []int32
Cmdline string
Environs []string
Ionice int32
IsRunning bool
ProcessMemoryInfo ProcessMemoryInfo
MemoryPercent float32
Name string
NumFd int32
NumThread int32
Parent int32
Percent float64
Ppid int32
ProcessRlimits []ProcessRlimit
Statuss []string
Uids []int32
Username string
}
type ProcessMemoryInfo ¶ added in v0.5.0
type ProcessRlimit ¶ added in v0.5.0
type ProcessStat ¶ added in v0.5.0
type ProcessStat struct {
ProcessInfos []ProcessInfo
}
Click to show internal directories.
Click to hide internal directories.