1 Star 0 Fork 0

sqos / beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
types.go 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
package event
import "time"
type ObjectMeta struct {
Annotations map[string]string `json:"annotations"`
CreationTimestamp string `json:"creationTimestamp"`
DeletionTimestamp string `json:"deletionTimestamp"`
GenerateName string `json:"generateName"`
Labels map[string]string `json:"labels"`
Name string `json:"name"`
Namespace string `json:"namespace"`
OwnerReferences []struct {
APIVersion string `json:"apiVersion"`
Controller bool `json:"controller"`
Kind string `json:"kind"`
Name string `json:"name"`
UID string `json:"uid"`
} `json:"ownerReferences"`
ResourceVersion string `json:"resourceVersion"`
SelfLink string `json:"selfLink"`
UID string `json:"uid"`
}
type Event struct {
APIVersion string `json:"apiVersion"`
Count int64 `json:"count"`
FirstTimestamp time.Time `json:"firstTimestamp"`
InvolvedObject struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Name string `json:"name"`
ResourceVersion string `json:"resourceVersion"`
UID string `json:"uid"`
} `json:"involvedObject"`
Kind string `json:"kind"`
LastTimestamp time.Time `json:"lastTimestamp"`
Message string `json:"message"`
Metadata ObjectMeta `json:"metadata"`
Reason string `json:"reason"`
Source struct {
Component string `json:"component"`
Host string `json:"host"`
} `json:"source"`
Type string `json:"type"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v6.0.0-alpha2

搜索帮助

344bd9b3 5694891 D2dac590 5694891