Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / k8s.io / api / events / v1beta1 / generated.proto
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20 syntax = 'proto2';
21
22 package k8s.io.api.events.v1beta1;
23
24 import "k8s.io/api/core/v1/generated.proto";
25 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
26 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
27 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
28
29 // Package-wide variables from generator "generated".
30 option go_package = "v1beta1";
31
32 // Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
33 message Event {
34   // +optional
35   optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
36
37   // Required. Time when this Event was first observed.
38   optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2;
39
40   // Data about the Event series this event represents or nil if it's a singleton Event.
41   // +optional
42   optional EventSeries series = 3;
43
44   // Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
45   // +optional
46   optional string reportingController = 4;
47
48   // ID of the controller instance, e.g. `kubelet-xyzf`.
49   // +optional
50   optional string reportingInstance = 5;
51
52   // What action was taken/failed regarding to the regarding object.
53   // +optional
54   optional string action = 6;
55
56   // Why the action was taken.
57   optional string reason = 7;
58
59   // The object this Event is about. In most cases it's an Object reporting controller implements.
60   // E.g. ReplicaSetController implements ReplicaSets and this event is emitted because
61   // it acts on some changes in a ReplicaSet object.
62   // +optional
63   optional k8s.io.api.core.v1.ObjectReference regarding = 8;
64
65   // Optional secondary object for more complex actions. E.g. when regarding object triggers
66   // a creation or deletion of related object.
67   // +optional
68   optional k8s.io.api.core.v1.ObjectReference related = 9;
69
70   // Optional. A human-readable description of the status of this operation.
71   // Maximal length of the note is 1kB, but libraries should be prepared to
72   // handle values up to 64kB.
73   // +optional
74   optional string note = 10;
75
76   // Type of this event (Normal, Warning), new types could be added in the
77   // future.
78   // +optional
79   optional string type = 11;
80
81   // Deprecated field assuring backward compatibility with core.v1 Event type
82   // +optional
83   optional k8s.io.api.core.v1.EventSource deprecatedSource = 12;
84
85   // Deprecated field assuring backward compatibility with core.v1 Event type
86   // +optional
87   optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13;
88
89   // Deprecated field assuring backward compatibility with core.v1 Event type
90   // +optional
91   optional k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14;
92
93   // Deprecated field assuring backward compatibility with core.v1 Event type
94   // +optional
95   optional int32 deprecatedCount = 15;
96 }
97
98 // EventList is a list of Event objects.
99 message EventList {
100   // Standard list metadata.
101   // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
102   // +optional
103   optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
104
105   // Items is a list of schema objects.
106   repeated Event items = 2;
107 }
108
109 // EventSeries contain information on series of events, i.e. thing that was/is happening
110 // continuously for some time.
111 message EventSeries {
112   // Number of occurrences in this series up to the last heartbeat time
113   optional int32 count = 1;
114
115   // Time when last Event from the series was seen before last heartbeat.
116   optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2;
117
118   // Information whether this series is ongoing or finished.
119   optional string state = 3;
120 }
121