1 Star 0 Fork 0

sqos/beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
types.go 4.19 KB
一键复制 编辑 原始数据 按行查看 历史
package kubernetes
type Summary struct {
Node struct {
CPU struct {
Time string `json:"time"`
UsageCoreNanoSeconds int64 `json:"usageCoreNanoSeconds"`
UsageNanoCores int64 `json:"usageNanoCores"`
} `json:"cpu"`
Fs struct {
AvailableBytes int64 `json:"availableBytes"`
CapacityBytes int64 `json:"capacityBytes"`
Inodes int64 `json:"inodes"`
InodesFree int64 `json:"inodesFree"`
InodesUsed int64 `json:"inodesUsed"`
UsedBytes int64 `json:"usedBytes"`
} `json:"fs"`
Memory struct {
AvailableBytes int64 `json:"availableBytes"`
MajorPageFaults int64 `json:"majorPageFaults"`
PageFaults int64 `json:"pageFaults"`
RssBytes int64 `json:"rssBytes"`
Time string `json:"time"`
UsageBytes int64 `json:"usageBytes"`
WorkingSetBytes int64 `json:"workingSetBytes"`
} `json:"memory"`
Network struct {
RxBytes int64 `json:"rxBytes"`
RxErrors int64 `json:"rxErrors"`
Time string `json:"time"`
TxBytes int64 `json:"txBytes"`
TxErrors int64 `json:"txErrors"`
} `json:"network"`
NodeName string `json:"nodeName"`
Runtime struct {
ImageFs struct {
AvailableBytes int64 `json:"availableBytes"`
CapacityBytes int64 `json:"capacityBytes"`
UsedBytes int64 `json:"usedBytes"`
} `json:"imageFs"`
} `json:"runtime"`
StartTime string `json:"startTime"`
SystemContainers []struct {
CPU struct {
Time string `json:"time"`
UsageCoreNanoSeconds int64 `json:"usageCoreNanoSeconds"`
UsageNanoCores int64 `json:"usageNanoCores"`
} `json:"cpu"`
Memory struct {
MajorPageFaults int64 `json:"majorPageFaults"`
PageFaults int64 `json:"pageFaults"`
RssBytes int64 `json:"rssBytes"`
Time string `json:"time"`
UsageBytes int64 `json:"usageBytes"`
WorkingSetBytes int64 `json:"workingSetBytes"`
} `json:"memory"`
Name string `json:"name"`
StartTime string `json:"startTime"`
UserDefinedMetrics interface{} `json:"userDefinedMetrics"`
} `json:"systemContainers"`
} `json:"node"`
Pods []struct {
Containers []struct {
CPU struct {
Time string `json:"time"`
UsageCoreNanoSeconds int64 `json:"usageCoreNanoSeconds"`
UsageNanoCores int64 `json:"usageNanoCores"`
} `json:"cpu"`
Logs struct {
AvailableBytes int64 `json:"availableBytes"`
CapacityBytes int64 `json:"capacityBytes"`
Inodes int64 `json:"inodes"`
InodesFree int64 `json:"inodesFree"`
InodesUsed int64 `json:"inodesUsed"`
UsedBytes int64 `json:"usedBytes"`
} `json:"logs"`
Memory struct {
AvailableBytes int64 `json:"availableBytes"`
MajorPageFaults int64 `json:"majorPageFaults"`
PageFaults int64 `json:"pageFaults"`
RssBytes int64 `json:"rssBytes"`
Time string `json:"time"`
UsageBytes int64 `json:"usageBytes"`
WorkingSetBytes int64 `json:"workingSetBytes"`
} `json:"memory"`
Name string `json:"name"`
Rootfs struct {
AvailableBytes int64 `json:"availableBytes"`
CapacityBytes int64 `json:"capacityBytes"`
InodesUsed int64 `json:"inodesUsed"`
UsedBytes int64 `json:"usedBytes"`
} `json:"rootfs"`
StartTime string `json:"startTime"`
UserDefinedMetrics interface{} `json:"userDefinedMetrics"`
} `json:"containers"`
Network struct {
RxBytes int64 `json:"rxBytes"`
RxErrors int64 `json:"rxErrors"`
Time string `json:"time"`
TxBytes int64 `json:"txBytes"`
TxErrors int64 `json:"txErrors"`
} `json:"network"`
PodRef struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
UID string `json:"uid"`
} `json:"podRef"`
StartTime string `json:"startTime"`
Volume []struct {
AvailableBytes int64 `json:"availableBytes"`
CapacityBytes int64 `json:"capacityBytes"`
Inodes int64 `json:"inodes"`
InodesFree int64 `json:"inodesFree"`
InodesUsed int64 `json:"inodesUsed"`
Name string `json:"name"`
UsedBytes int64 `json:"usedBytes"`
} `json:"volume"`
} `json:"pods"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v6.2.4

搜索帮助