logging.proto 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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.stream.logging.v1;
  16. import "google/protobuf/timestamp.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/stream/logging/v1;logging";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "LoggingProto";
  20. option java_package = "com.google.cloud.stream.logging.v1";
  21. // OperationEventLog contains the time series data of the operations on the
  22. // stream resources. Internally, these logs represent events happening in
  23. // the control plane as result of API invocations against the stream resource
  24. // entities.
  25. message OperationEventLog {
  26. // Enum for type of event being logged.
  27. OperationEventType event_type = 1;
  28. // Timestamp when the event occurred.
  29. google.protobuf.Timestamp event_time = 2;
  30. // Operation resource identifier.
  31. string operation = 3;
  32. // Artifact created as a result of the operation.
  33. repeated OperationArtifact operation_artifacts = 4;
  34. }
  35. // OperationArtifact contains the information about the artifact created as
  36. // result of the operation.
  37. message OperationArtifact {
  38. // Type of the artifact.
  39. string artifact_type = 1;
  40. // Location of the artifact.
  41. string artifact_uri = 2;
  42. }
  43. // SessionEventLog contains the time series data regarding the streaming session
  44. // to serve the end consumer. Internally, these logs represent events in the
  45. // data plane streamer instance as a result of end consumer interacting with the
  46. // stream resources.
  47. message SessionEventLog {
  48. // Enum for type of event being logged.
  49. SessionEventType event_type = 1;
  50. // Timestamp when the event occurred.
  51. google.protobuf.Timestamp event_time = 2;
  52. // Session identifier generated from the server.
  53. string session_id = 3;
  54. }
  55. // OperationEventType is the enum value for the state of operation.
  56. enum OperationEventType {
  57. // Unspecified operation event type.
  58. OPERATION_EVENT_TYPE_UNSPECIFIED = 0;
  59. // Operation for create stream content started.
  60. OPERATION_EVENT_CREATE_CONTENT_STARTED = 1;
  61. // Operation for create stream content ended.
  62. OPERATION_EVENT_CREATE_CONTENT_ENDED = 2;
  63. // Operation for build stream content started.
  64. OPERATION_EVENT_BUILD_CONTENT_STARTED = 3;
  65. // Operation for build stream content ended.
  66. OPERATION_EVENT_BUILD_CONTENT_ENDED = 4;
  67. // Operation for update stream content started.
  68. OPERATION_EVENT_UPDATE_CONTENT_STARTED = 5;
  69. // Operation for update stream content ended.
  70. OPERATION_EVENT_UPDATE_CONTENT_ENDED = 6;
  71. // Operation for delete stream content started.
  72. OPERATION_EVENT_DELETE_CONTENT_STARTED = 7;
  73. // Operation for delete stream content ended.
  74. OPERATION_EVENT_DELETE_CONTENT_ENDED = 8;
  75. // Operation for create stream instance started.
  76. OPERATION_EVENT_CREATE_INSTANCE_STARTED = 9;
  77. // Operation for create stream instance ended.
  78. OPERATION_EVENT_CREATE_INSTANCE_ENDED = 10;
  79. // Operation for update stream instance started.
  80. OPERATION_EVENT_UPDATE_INSTANCE_STARTED = 11;
  81. // Operation for update stream instance ended.
  82. OPERATION_EVENT_UPDATE_INSTANCE_ENDED = 12;
  83. // Operation for delete stream instance started.
  84. OPERATION_EVENT_DELETE_INSTANCE_STARTED = 13;
  85. // Operation for delete stream instance ended.
  86. OPERATION_EVENT_DELETE_INSTANCE_ENDED = 14;
  87. }
  88. // SessionEventType is the enum value for the state of session.
  89. enum SessionEventType {
  90. // Unspecified session event type.
  91. SESSION_EVENT_TYPE_UNSPECIFIED = 0;
  92. // Session in streamer shutting down state.
  93. SESSION_EVENT_SERVER_STREAMER_SHUTTING_DOWN = 1;
  94. // Session in streamer ready state.
  95. SESSION_EVENT_SERVER_STREAMER_READY = 2;
  96. // Session in streamer binary started state.
  97. SESSION_EVENT_SERVER_STREAMER_BINARY_STARTED = 3;
  98. // Session in streamer read pod image names state.
  99. SESSION_EVENT_SERVER_STREAMER_READ_POD_IMAGE_NAMES = 4;
  100. // Session in streamer connected to game state.
  101. SESSION_EVENT_SERVER_STREAMER_CONNECTED_TO_GAME = 5;
  102. // Session in streamer connected to client state.
  103. SESSION_EVENT_SERVER_STREAMER_CONNECTED_TO_CLIENT = 6;
  104. // Session in streamer disconnected from client state.
  105. SESSION_EVENT_SERVER_STREAMER_DISCONNECTED_FROM_CLIENT = 7;
  106. // Session in streamer received create session request state.
  107. SESSION_EVENT_SERVER_STREAMER_RECEIVED_CREATE_SESSION_REQUEST = 8;
  108. // Session in streamer game message to stream closed state.
  109. SESSION_EVENT_SERVER_STREAMER_GAME_MESSAGE_STREAM_CLOSED = 9;
  110. // Session in streamer game frame stream closed state.
  111. SESSION_EVENT_SERVER_STREAMER_GAME_FRAME_STREAM_CLOSED = 10;
  112. // Session in streamer game message stream error state.
  113. SESSION_EVENT_SERVER_STREAMER_GAME_MESSAGE_STREAM_ERROR = 11;
  114. // Session in streamer game audio stream error state.
  115. SESSION_EVENT_SERVER_STREAMER_GAME_AUDIO_STREAM_ERROR = 12;
  116. // Session in streamer game audio stream closed state.
  117. SESSION_EVENT_SERVER_STREAMER_GAME_AUDIO_STREAM_CLOSED = 13;
  118. // Session in streamer game frame stream error state.
  119. SESSION_EVENT_SERVER_STREAMER_GAME_FRAME_STREAM_ERROR = 14;
  120. // Session in game disconnecting after paused too long state.
  121. SESSION_EVENT_SERVER_GAME_DISCONNECTING_AFTER_PAUSED_TOO_LONG = 15;
  122. // Session in streamer received experiment configuration state.
  123. SESSION_EVENT_SERVER_STREAMER_RECEIVED_EXPERIMENT_CONFIGURATION = 16;
  124. // Session in game connected to logging service state.
  125. SESSION_EVENT_SERVER_GAME_CONNECTED_TO_LOGGING_SERVICE = 17;
  126. // Session in streamer determined session options state.
  127. SESSION_EVENT_SERVER_STREAMER_DETERMINED_SESSION_OPTIONS = 18;
  128. // Session in streamer killed in middle of session state.
  129. SESSION_EVENT_SERVER_STREAMER_KILLED_IN_MIDDLE_OF_SESSION = 19;
  130. // Session in game updated frame pipeline state.
  131. SESSION_EVENT_SERVER_GAME_UPDATED_FRAME_PIPELINE = 20;
  132. // Session in server error state.
  133. SESSION_EVENT_SERVER_ERROR = 21;
  134. }