xref: /aosp_15_r20/external/googleapis/google/cloud/workstations/logging/v1/platform_logs.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.workstations.logging.v1;
18
19option go_package = "cloud.google.com/go/workstations/logging/apiv1/loggingpb;loggingpb";
20option java_multiple_files = true;
21option java_outer_classname = "PlatformLogsProto";
22option java_package = "com.google.cloud.workstations.logging.v1";
23
24// JSON payload for the Cloud Logging event:
25// `workstations.googleapis.com%2Fworkstation_events`
26message WorkstationEvent {
27  oneof event_type {
28    // Vm assignment event.
29    VmAssignmentEvent vm_assignment_event = 1;
30
31    // Disk assignment event.
32    DiskAssignmentEvent disk_assignment_event = 2;
33  }
34}
35
36// Vm assignment event.
37message VmAssignmentEvent {
38  // Name of the VM assigned to this workstation.
39  string vm = 1;
40}
41
42// Disk assignment event.
43message DiskAssignmentEvent {
44  // Name of the disk assigned to this workstation.
45  string disk = 1;
46}
47