Skip to content

Commit 53a7210

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added ISXR Logging
PiperOrigin-RevId: 459842140
1 parent 4d8b76d commit 53a7210

2 files changed

Lines changed: 359 additions & 0 deletions

File tree

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
3+
# This is an API workspace, having public visibility by default makes perfect sense.
4+
package(default_visibility = ["//visibility:public"])
5+
6+
##############################################################################
7+
# Common
8+
##############################################################################
9+
load("@rules_proto//proto:defs.bzl", "proto_library")
10+
11+
proto_library(
12+
name = "logging_proto",
13+
srcs = [
14+
"logging.proto",
15+
],
16+
deps = [
17+
"@com_google_protobuf//:timestamp_proto",
18+
],
19+
)
20+
21+
##############################################################################
22+
# Java
23+
##############################################################################
24+
load(
25+
"@com_google_googleapis_imports//:imports.bzl",
26+
"java_grpc_library",
27+
"java_proto_library",
28+
)
29+
30+
java_proto_library(
31+
name = "logging_java_proto",
32+
deps = [":logging_proto"],
33+
)
34+
35+
java_grpc_library(
36+
name = "logging_java_grpc",
37+
srcs = [":logging_proto"],
38+
deps = [":logging_java_proto"],
39+
)
40+
41+
##############################################################################
42+
# Go
43+
##############################################################################
44+
load(
45+
"@com_google_googleapis_imports//:imports.bzl",
46+
"go_proto_library",
47+
)
48+
49+
go_proto_library(
50+
name = "logging_go_proto",
51+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
52+
importpath = "google.golang.org/genproto/googleapis/cloud/stream/logging/v1",
53+
protos = [":logging_proto"],
54+
deps = [],
55+
)
56+
57+
##############################################################################
58+
# Python
59+
##############################################################################
60+
load(
61+
"@com_google_googleapis_imports//:imports.bzl",
62+
"moved_proto_library",
63+
"py_grpc_library",
64+
"py_proto_library",
65+
)
66+
67+
moved_proto_library(
68+
name = "logging_moved_proto",
69+
srcs = [":logging_proto"],
70+
deps = [
71+
"@com_google_protobuf//:timestamp_proto",
72+
],
73+
)
74+
75+
py_proto_library(
76+
name = "logging_py_proto",
77+
deps = [":logging_moved_proto"],
78+
)
79+
80+
py_grpc_library(
81+
name = "logging_py_grpc",
82+
srcs = [":logging_moved_proto"],
83+
deps = [":logging_py_proto"],
84+
)
85+
86+
##############################################################################
87+
# PHP
88+
##############################################################################
89+
load(
90+
"@com_google_googleapis_imports//:imports.bzl",
91+
"php_grpc_library",
92+
"php_proto_library",
93+
)
94+
95+
php_proto_library(
96+
name = "logging_php_proto",
97+
deps = [":logging_proto"],
98+
)
99+
100+
php_grpc_library(
101+
name = "logging_php_grpc",
102+
srcs = [":logging_proto"],
103+
deps = [":logging_php_proto"],
104+
)
105+
106+
##############################################################################
107+
# Node.js
108+
##############################################################################
109+
load(
110+
"@com_google_googleapis_imports//:imports.bzl",
111+
"nodejs_gapic_assembly_pkg",
112+
"nodejs_gapic_library",
113+
)
114+
115+
116+
##############################################################################
117+
# Ruby
118+
##############################################################################
119+
load(
120+
"@com_google_googleapis_imports//:imports.bzl",
121+
"ruby_grpc_library",
122+
"ruby_proto_library",
123+
)
124+
125+
ruby_proto_library(
126+
name = "logging_ruby_proto",
127+
deps = [":logging_proto"],
128+
)
129+
130+
ruby_grpc_library(
131+
name = "logging_ruby_grpc",
132+
srcs = [":logging_proto"],
133+
deps = [":logging_ruby_proto"],
134+
)
135+
136+
##############################################################################
137+
# C#
138+
##############################################################################
139+
load(
140+
"@com_google_googleapis_imports//:imports.bzl",
141+
"csharp_grpc_library",
142+
"csharp_proto_library",
143+
)
144+
145+
csharp_proto_library(
146+
name = "logging_csharp_proto",
147+
deps = [":logging_proto"],
148+
)
149+
150+
csharp_grpc_library(
151+
name = "logging_csharp_grpc",
152+
srcs = [":logging_proto"],
153+
deps = [":logging_csharp_proto"],
154+
)
155+
156+
##############################################################################
157+
# C++
158+
##############################################################################
159+
load(
160+
"@com_google_googleapis_imports//:imports.bzl",
161+
"cc_grpc_library",
162+
"cc_proto_library",
163+
)
164+
165+
cc_proto_library(
166+
name = "logging_cc_proto",
167+
deps = [":logging_proto"],
168+
)
169+
170+
cc_grpc_library(
171+
name = "logging_cc_grpc",
172+
srcs = [":logging_proto"],
173+
grpc_only = True,
174+
deps = [":logging_cc_proto"],
175+
)
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
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+
15+
syntax = "proto3";
16+
17+
package google.cloud.stream.logging.v1;
18+
19+
import "google/protobuf/timestamp.proto";
20+
21+
option go_package = "google.golang.org/genproto/googleapis/cloud/stream/logging/v1;logging";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "LoggingProto";
24+
option java_package = "com.google.cloud.stream.logging.v1";
25+
26+
// OperationEventLog contains the time series data of the operations on the
27+
// stream resources. Internally, these logs represent events happening in
28+
// the control plane as result of API invocations against the stream resource
29+
// entities.
30+
message OperationEventLog {
31+
// Enum for type of event being logged.
32+
OperationEventType event_type = 1;
33+
34+
// Timestamp when the event occurred.
35+
google.protobuf.Timestamp event_time = 2;
36+
37+
// Operation resource identifier.
38+
string operation = 3;
39+
40+
// Artifact created as a result of the operation.
41+
repeated OperationArtifact operation_artifacts = 4;
42+
}
43+
44+
// OperationArtifact contains the information about the artifact created as
45+
// result of the operation.
46+
message OperationArtifact {
47+
// Type of the artifact.
48+
string artifact_type = 1;
49+
50+
// Location of the artifact.
51+
string artifact_uri = 2;
52+
}
53+
54+
// SessionEventLog contains the time series data regarding the streaming session
55+
// to serve the end consumer. Internally, these logs represent events in the
56+
// data plane streamer instance as a result of end consumer interacting with the
57+
// stream resources.
58+
message SessionEventLog {
59+
// Enum for type of event being logged.
60+
SessionEventType event_type = 1;
61+
62+
// Timestamp when the event occurred.
63+
google.protobuf.Timestamp event_time = 2;
64+
65+
// Session identifier generated from the server.
66+
string session_id = 3;
67+
}
68+
69+
// OperationEventType is the enum value for the state of operation.
70+
enum OperationEventType {
71+
// Unspecified operation event type.
72+
OPERATION_EVENT_TYPE_UNSPECIFIED = 0;
73+
74+
// Operation for create stream content started.
75+
OPERATION_EVENT_CREATE_CONTENT_STARTED = 1;
76+
77+
// Operation for create stream content ended.
78+
OPERATION_EVENT_CREATE_CONTENT_ENDED = 2;
79+
80+
// Operation for build stream content started.
81+
OPERATION_EVENT_BUILD_CONTENT_STARTED = 3;
82+
83+
// Operation for build stream content ended.
84+
OPERATION_EVENT_BUILD_CONTENT_ENDED = 4;
85+
86+
// Operation for update stream content started.
87+
OPERATION_EVENT_UPDATE_CONTENT_STARTED = 5;
88+
89+
// Operation for update stream content ended.
90+
OPERATION_EVENT_UPDATE_CONTENT_ENDED = 6;
91+
92+
// Operation for delete stream content started.
93+
OPERATION_EVENT_DELETE_CONTENT_STARTED = 7;
94+
95+
// Operation for delete stream content ended.
96+
OPERATION_EVENT_DELETE_CONTENT_ENDED = 8;
97+
98+
// Operation for create stream instance started.
99+
OPERATION_EVENT_CREATE_INSTANCE_STARTED = 9;
100+
101+
// Operation for create stream instance ended.
102+
OPERATION_EVENT_CREATE_INSTANCE_ENDED = 10;
103+
104+
// Operation for update stream instance started.
105+
OPERATION_EVENT_UPDATE_INSTANCE_STARTED = 11;
106+
107+
// Operation for update stream instance ended.
108+
OPERATION_EVENT_UPDATE_INSTANCE_ENDED = 12;
109+
110+
// Operation for delete stream instance started.
111+
OPERATION_EVENT_DELETE_INSTANCE_STARTED = 13;
112+
113+
// Operation for delete stream instance ended.
114+
OPERATION_EVENT_DELETE_INSTANCE_ENDED = 14;
115+
}
116+
117+
// SessionEventType is the enum value for the state of session.
118+
enum SessionEventType {
119+
// Unspecified session event type.
120+
SESSION_EVENT_TYPE_UNSPECIFIED = 0;
121+
122+
// Session in streamer shutting down state.
123+
SESSION_EVENT_SERVER_STREAMER_SHUTTING_DOWN = 1;
124+
125+
// Session in streamer ready state.
126+
SESSION_EVENT_SERVER_STREAMER_READY = 2;
127+
128+
// Session in streamer binary started state.
129+
SESSION_EVENT_SERVER_STREAMER_BINARY_STARTED = 3;
130+
131+
// Session in streamer read pod image names state.
132+
SESSION_EVENT_SERVER_STREAMER_READ_POD_IMAGE_NAMES = 4;
133+
134+
// Session in streamer connected to game state.
135+
SESSION_EVENT_SERVER_STREAMER_CONNECTED_TO_GAME = 5;
136+
137+
// Session in streamer connected to client state.
138+
SESSION_EVENT_SERVER_STREAMER_CONNECTED_TO_CLIENT = 6;
139+
140+
// Session in streamer disconnected from client state.
141+
SESSION_EVENT_SERVER_STREAMER_DISCONNECTED_FROM_CLIENT = 7;
142+
143+
// Session in streamer received create session request state.
144+
SESSION_EVENT_SERVER_STREAMER_RECEIVED_CREATE_SESSION_REQUEST = 8;
145+
146+
// Session in streamer game message to stream closed state.
147+
SESSION_EVENT_SERVER_STREAMER_GAME_MESSAGE_STREAM_CLOSED = 9;
148+
149+
// Session in streamer game frame stream closed state.
150+
SESSION_EVENT_SERVER_STREAMER_GAME_FRAME_STREAM_CLOSED = 10;
151+
152+
// Session in streamer game message stream error state.
153+
SESSION_EVENT_SERVER_STREAMER_GAME_MESSAGE_STREAM_ERROR = 11;
154+
155+
// Session in streamer game audio stream error state.
156+
SESSION_EVENT_SERVER_STREAMER_GAME_AUDIO_STREAM_ERROR = 12;
157+
158+
// Session in streamer game audio stream closed state.
159+
SESSION_EVENT_SERVER_STREAMER_GAME_AUDIO_STREAM_CLOSED = 13;
160+
161+
// Session in streamer game frame stream error state.
162+
SESSION_EVENT_SERVER_STREAMER_GAME_FRAME_STREAM_ERROR = 14;
163+
164+
// Session in game disconnecting after paused too long state.
165+
SESSION_EVENT_SERVER_GAME_DISCONNECTING_AFTER_PAUSED_TOO_LONG = 15;
166+
167+
// Session in streamer received experiment configuration state.
168+
SESSION_EVENT_SERVER_STREAMER_RECEIVED_EXPERIMENT_CONFIGURATION = 16;
169+
170+
// Session in game connected to logging service state.
171+
SESSION_EVENT_SERVER_GAME_CONNECTED_TO_LOGGING_SERVICE = 17;
172+
173+
// Session in streamer determined session options state.
174+
SESSION_EVENT_SERVER_STREAMER_DETERMINED_SESSION_OPTIONS = 18;
175+
176+
// Session in streamer killed in middle of session state.
177+
SESSION_EVENT_SERVER_STREAMER_KILLED_IN_MIDDLE_OF_SESSION = 19;
178+
179+
// Session in game updated frame pipeline state.
180+
SESSION_EVENT_SERVER_GAME_UPDATED_FRAME_PIPELINE = 20;
181+
182+
// Session in server error state.
183+
SESSION_EVENT_SERVER_ERROR = 21;
184+
}

0 commit comments

Comments
 (0)