xref: /aosp_15_r20/external/googleapis/google/cloud/notebooks/v1/event.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.notebooks.v1;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto";
20*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
21*d5c09012SAndroid Build Coastguard Worker
22*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/notebooks/apiv1/notebookspb;notebookspb";
23*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
24*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "EventProto";
25*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.notebooks.v1";
26*d5c09012SAndroid Build Coastguard Worker
27*d5c09012SAndroid Build Coastguard Worker// The definition of an Event for a managed / semi-managed notebook instance.
28*d5c09012SAndroid Build Coastguard Workermessage Event {
29*d5c09012SAndroid Build Coastguard Worker  // The definition of the event types.
30*d5c09012SAndroid Build Coastguard Worker  enum EventType {
31*d5c09012SAndroid Build Coastguard Worker    // Event is not specified.
32*d5c09012SAndroid Build Coastguard Worker    EVENT_TYPE_UNSPECIFIED = 0;
33*d5c09012SAndroid Build Coastguard Worker
34*d5c09012SAndroid Build Coastguard Worker    // The instance / runtime is idle
35*d5c09012SAndroid Build Coastguard Worker    IDLE = 1;
36*d5c09012SAndroid Build Coastguard Worker
37*d5c09012SAndroid Build Coastguard Worker    // The instance / runtime is available.
38*d5c09012SAndroid Build Coastguard Worker    // This event indicates that instance / runtime underlying compute is
39*d5c09012SAndroid Build Coastguard Worker    // operational.
40*d5c09012SAndroid Build Coastguard Worker    HEARTBEAT = 2;
41*d5c09012SAndroid Build Coastguard Worker
42*d5c09012SAndroid Build Coastguard Worker    // The instance / runtime health is available.
43*d5c09012SAndroid Build Coastguard Worker    // This event indicates that instance / runtime health information.
44*d5c09012SAndroid Build Coastguard Worker    HEALTH = 3;
45*d5c09012SAndroid Build Coastguard Worker
46*d5c09012SAndroid Build Coastguard Worker    // The instance / runtime is available.
47*d5c09012SAndroid Build Coastguard Worker    // This event allows instance / runtime to send Host maintenance
48*d5c09012SAndroid Build Coastguard Worker    // information to Control Plane.
49*d5c09012SAndroid Build Coastguard Worker    // https://cloud.google.com/compute/docs/gpus/gpu-host-maintenance
50*d5c09012SAndroid Build Coastguard Worker    MAINTENANCE = 4;
51*d5c09012SAndroid Build Coastguard Worker  }
52*d5c09012SAndroid Build Coastguard Worker
53*d5c09012SAndroid Build Coastguard Worker  // Event report time.
54*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp report_time = 1;
55*d5c09012SAndroid Build Coastguard Worker
56*d5c09012SAndroid Build Coastguard Worker  // Event type.
57*d5c09012SAndroid Build Coastguard Worker  EventType type = 2;
58*d5c09012SAndroid Build Coastguard Worker
59*d5c09012SAndroid Build Coastguard Worker  // Optional. Event details. This field is used to pass event information.
60*d5c09012SAndroid Build Coastguard Worker  map<string, string> details = 3 [(google.api.field_behavior) = OPTIONAL];
61*d5c09012SAndroid Build Coastguard Worker}
62