Documentation
¶
Index ¶
- type BuildSight
- type BuildSightConfig
- type CgroupDockerStat
- type CgroupMemDocker
- 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 CgroupDockerStat ¶ added in v0.8.0
type CgroupMemDocker ¶ added in v0.8.0
type CgroupMemDocker struct {
Cache uint64 `json:"cache"`
Rss uint64 `json:"rss"`
RssHuge uint64 `json:"rssHuge"`
MappedFile uint64 `json:"mappedFile"`
TotalCache uint64 `json:"totalCache"`
TotalRss uint64 `json:"totalRss"`
TotalRssHuge uint64 `json:"totalRssHuge"`
TotalMappedFile uint64 `json:"totalMappedFile"`
MemUsageInBytes uint64 `json:"memUsageInBytes"`
MemMaxUsageInBytes uint64 `json:"memMaxUsageInBytes"`
MemLimitInBytes uint64 `json:"memLimitInBytes"`
}
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 CpuTime ¶ added in v0.5.0
type CpuTime struct {
Cpu string `json:"cpu"`
User float64 `json:"user"`
System float64 `json:"system"`
Idle float64 `json:"idle"`
Nice float64 `json:"nice"`
Iowait float64 `json:"iowait"`
Irq float64 `json:"irq"`
Softirq float64 `json:"softirq"`
Steal float64 `json:"steal"`
Guest float64 `json:"guest"`
GuestNice float64 `json:"guestNice"`
}
type DiskPartition ¶ added in v0.5.0
type DiskStat ¶ added in v0.5.0
type DiskStat struct {
DiskPartitions []DiskPartition `json:"diskPartitions"`
DiskUsage DiskUsage `json:"diskUsage"`
}
type DockerStat ¶ added in v0.5.0
type DockerStat struct {
CgroupCpuDockerUsages []float64 `json:"cgroupCpuDockerUsages"`
CgroupDockerStats []CgroupDockerStat `json:"cgroupDockerStats"`
CgroupMemDockers []CgroupMemDocker `json:"cgroupMemDockers"`
}
type HostStat ¶ added in v0.5.0
type HostStat struct {
Hostname string `json:"hostname"`
Procs uint64 `json:"procs"`
Os string `json:"os"`
Platform string `json:"platform"`
PlatformFamily string `json:"platformFamily"`
PlatformVersion string `json:"platformVersion"`
KernelVersion string `json:"kernelVersion"`
KernelArch string `json:"kernelArch"`
HostID string `json:"hostID"`
}
type MemStat ¶ added in v0.5.0
type MemStat struct {
MemSwapDevices []MemSwapDevice `json:"memSwapDevices"`
MemSwapMemory MemSwapMemory `json:"memSwapMemory"`
MemVirtual MemVirtual `json:"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 `json:"total"`
Available uint64 `json:"available"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
Free uint64 `json:"free"`
Buffer uint64 `json:"buffer"`
Cached uint64 `json:"cached"`
SwapCached uint64 `json:"swapCached"`
SwapTotal uint64 `json:"swapTotal"`
SwapFree uint64 `json:"swapFree"`
Mapped uint64 `json:"mapped"`
VmallocTotal uint64 `json:"vmallocTotal"`
VmallocUsed uint64 `json:"vmallocUsed"`
VmallocChunk uint64 `json:"vmallocChunk"`
HugePagesTotal uint64 `json:"hugePagesTotal"`
HugePagesFree uint64 `json:"hugePagesFree"`
HugePagesRsvd uint64 `json:"hugePagesRsvd"`
HugePagesSurp uint64 `json:"hugePagesSurp"`
HugePageSize uint64 `json:"hugePageSize"`
AnonHugePage uint64 `json:"anonHugePage"`
}
type NetInterface ¶ added in v0.5.0
type NetStat ¶ added in v0.5.0
type NetStat struct {
NetIos []NetIo `json:"netIos"`
NetInterfaces []NetInterface `json:"netInterfaces"`
}
type NodeInfo ¶ added in v0.5.0
type NodeInfo struct {
NodeStat NodeStat
NodeReport NodeReport
}
type NodeReport ¶ added in v0.5.0
type NodeReport struct {
CpuReport string `json:"cpuReport"`
DiskReport string `json:"diskReport"`
DockerReport string `json:"dockerReport"`
HostReport string `json:"hostReport"`
LoadReport string `json:"loadReport"`
MemReport string `json:"memReport"`
NetReport string `json:"netReport"`
ProcessReport string `json:"processReport"`
}
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 {
CpuStat CpuStat `json:"cpuStat"`
DiskStat DiskStat `json:"diskStat"`
DockerStat DockerStat `json:"dockerStat"`
HostStat HostStat `json:"hostStat"`
LoadStat LoadStat `json:"loadStat"`
MemStat MemStat `json:"memStat"`
NetStat NetStat `json:"netStat"`
ProcessStat ProcessStat `json:"processStat"`
}
type ProcessInfo ¶ added in v0.5.0
type ProcessInfo struct {
Background bool `json:"background"`
CpuPercent float64 `json:"cpuPercent"`
Children []int32 `json:"children"`
Cmdline string `json:"cmdline"`
Environs []string `json:"environs"`
Ionice int32 `json:"ionice"`
IsRunning bool `json:"isRunning"`
ProcessMemoryInfo ProcessMemoryInfo `json:"processMemoryInfo"`
MemoryPercent float32 `json:"memoryPercent"`
Name string `json:"name"`
NumFd int32 `json:"numFd"`
NumThread int32 `json:"numThread"`
Parent int32 `json:"parent"`
Ppid int32 `json:"ppid"`
ProcessRlimits []ProcessRlimit `json:"processRlimits"`
Statuss []string `json:"statuss"`
Uids []int32 `json:"uids"`
Username string `json:"username"`
}
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 `json:"processInfos"`
}
Click to show internal directories.
Click to hide internal directories.