-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1_event.go
69 lines (49 loc) · 2.85 KB
/
v1_event.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
import (
"time"
)
// Event is a report of an event somewhere in the cluster.
type V1Event struct {
// What action was taken/failed regarding to the Regarding object.
Action string `json:"action,omitempty"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
ApiVersion string `json:"apiVersion,omitempty"`
// The number of times this event has occurred.
Count int32 `json:"count,omitempty"`
// Time when this Event was first observed.
EventTime time.Time `json:"eventTime,omitempty"`
// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
FirstTimestamp time.Time `json:"firstTimestamp,omitempty"`
// The object that this event is about.
InvolvedObject *V1ObjectReference `json:"involvedObject"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
Kind string `json:"kind,omitempty"`
// The time at which the most recent occurrence of this event was recorded.
LastTimestamp time.Time `json:"lastTimestamp,omitempty"`
// A human-readable description of the status of this operation.
Message string `json:"message,omitempty"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
Metadata *V1ObjectMeta `json:"metadata"`
// This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
Reason string `json:"reason,omitempty"`
// Optional secondary object for more complex actions.
Related *V1ObjectReference `json:"related,omitempty"`
// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
ReportingComponent string `json:"reportingComponent,omitempty"`
// ID of the controller instance, e.g. `kubelet-xyzf`.
ReportingInstance string `json:"reportingInstance,omitempty"`
// Data about the Event series this event represents or nil if it's a singleton Event.
Series *V1EventSeries `json:"series,omitempty"`
// The component reporting this event. Should be a short machine understandable string.
Source *V1EventSource `json:"source,omitempty"`
// Type of this event (Normal, Warning), new types could be added in the future
Type_ string `json:"type,omitempty"`
}