forked from bigpigeon/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
46 lines (43 loc) · 1.57 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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"`
}