event.proto 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.cloud.notebooks.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/v1;notebooks";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "EventProto";
  21. option java_package = "com.google.cloud.notebooks.v1";
  22. // The definition of an Event for a managed / semi-managed notebook instance.
  23. message Event {
  24. // The definition of the event types.
  25. enum EventType {
  26. // Event is not specified.
  27. EVENT_TYPE_UNSPECIFIED = 0;
  28. // The instance / runtime is idle
  29. IDLE = 1;
  30. // The instance / runtime is available.
  31. // This event indicates that instance / runtime underlying compute is
  32. // operational.
  33. HEARTBEAT = 2;
  34. // The instance / runtime health is available.
  35. // This event indicates that instance / runtime health information.
  36. HEALTH = 3;
  37. // The instance / runtime is available.
  38. // This event allows instance / runtime to send Host maintenance
  39. // information to Control Plane.
  40. // https://cloud.google.com/compute/docs/gpus/gpu-host-maintenance
  41. MAINTENANCE = 4;
  42. }
  43. // Event report time.
  44. google.protobuf.Timestamp report_time = 1;
  45. // Event type.
  46. EventType type = 2;
  47. // Optional. Event details. This field is used to pass event information.
  48. map<string, string> details = 3 [(google.api.field_behavior) = OPTIONAL];
  49. }