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