feat: Added ISXR Logging

PiperOrigin-RevId: 459842140
pull/726/head
Google APIs 3 years ago committed by Copybara-Service
parent 4d8b76dbfd
commit 53a72100f9
  1. 175
      google/cloud/stream/logging/v1/BUILD.bazel
  2. 184
      google/cloud/stream/logging/v1/logging.proto

@ -0,0 +1,175 @@
# This file was automatically generated by BuildFileGenerator
# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])
##############################################################################
# Common
##############################################################################
load("@rules_proto//proto:defs.bzl", "proto_library")
proto_library(
name = "logging_proto",
srcs = [
"logging.proto",
],
deps = [
"@com_google_protobuf//:timestamp_proto",
],
)
##############################################################################
# Java
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_grpc_library",
"java_proto_library",
)
java_proto_library(
name = "logging_java_proto",
deps = [":logging_proto"],
)
java_grpc_library(
name = "logging_java_grpc",
srcs = [":logging_proto"],
deps = [":logging_java_proto"],
)
##############################################################################
# Go
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"go_proto_library",
)
go_proto_library(
name = "logging_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
importpath = "google.golang.org/genproto/googleapis/cloud/stream/logging/v1",
protos = [":logging_proto"],
deps = [],
)
##############################################################################
# Python
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"moved_proto_library",
"py_grpc_library",
"py_proto_library",
)
moved_proto_library(
name = "logging_moved_proto",
srcs = [":logging_proto"],
deps = [
"@com_google_protobuf//:timestamp_proto",
],
)
py_proto_library(
name = "logging_py_proto",
deps = [":logging_moved_proto"],
)
py_grpc_library(
name = "logging_py_grpc",
srcs = [":logging_moved_proto"],
deps = [":logging_py_proto"],
)
##############################################################################
# PHP
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_grpc_library",
"php_proto_library",
)
php_proto_library(
name = "logging_php_proto",
deps = [":logging_proto"],
)
php_grpc_library(
name = "logging_php_grpc",
srcs = [":logging_proto"],
deps = [":logging_php_proto"],
)
##############################################################################
# Node.js
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
)
##############################################################################
# Ruby
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_grpc_library",
"ruby_proto_library",
)
ruby_proto_library(
name = "logging_ruby_proto",
deps = [":logging_proto"],
)
ruby_grpc_library(
name = "logging_ruby_grpc",
srcs = [":logging_proto"],
deps = [":logging_ruby_proto"],
)
##############################################################################
# C#
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_grpc_library",
"csharp_proto_library",
)
csharp_proto_library(
name = "logging_csharp_proto",
deps = [":logging_proto"],
)
csharp_grpc_library(
name = "logging_csharp_grpc",
srcs = [":logging_proto"],
deps = [":logging_csharp_proto"],
)
##############################################################################
# C++
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
"cc_proto_library",
)
cc_proto_library(
name = "logging_cc_proto",
deps = [":logging_proto"],
)
cc_grpc_library(
name = "logging_cc_grpc",
srcs = [":logging_proto"],
grpc_only = True,
deps = [":logging_cc_proto"],
)

@ -0,0 +1,184 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.stream.logging.v1;
import "google/protobuf/timestamp.proto";
option go_package = "google.golang.org/genproto/googleapis/cloud/stream/logging/v1;logging";
option java_multiple_files = true;
option java_outer_classname = "LoggingProto";
option java_package = "com.google.cloud.stream.logging.v1";
// OperationEventLog contains the time series data of the operations on the
// stream resources. Internally, these logs represent events happening in
// the control plane as result of API invocations against the stream resource
// entities.
message OperationEventLog {
// Enum for type of event being logged.
OperationEventType event_type = 1;
// Timestamp when the event occurred.
google.protobuf.Timestamp event_time = 2;
// Operation resource identifier.
string operation = 3;
// Artifact created as a result of the operation.
repeated OperationArtifact operation_artifacts = 4;
}
// OperationArtifact contains the information about the artifact created as
// result of the operation.
message OperationArtifact {
// Type of the artifact.
string artifact_type = 1;
// Location of the artifact.
string artifact_uri = 2;
}
// SessionEventLog contains the time series data regarding the streaming session
// to serve the end consumer. Internally, these logs represent events in the
// data plane streamer instance as a result of end consumer interacting with the
// stream resources.
message SessionEventLog {
// Enum for type of event being logged.
SessionEventType event_type = 1;
// Timestamp when the event occurred.
google.protobuf.Timestamp event_time = 2;
// Session identifier generated from the server.
string session_id = 3;
}
// OperationEventType is the enum value for the state of operation.
enum OperationEventType {
// Unspecified operation event type.
OPERATION_EVENT_TYPE_UNSPECIFIED = 0;
// Operation for create stream content started.
OPERATION_EVENT_CREATE_CONTENT_STARTED = 1;
// Operation for create stream content ended.
OPERATION_EVENT_CREATE_CONTENT_ENDED = 2;
// Operation for build stream content started.
OPERATION_EVENT_BUILD_CONTENT_STARTED = 3;
// Operation for build stream content ended.
OPERATION_EVENT_BUILD_CONTENT_ENDED = 4;
// Operation for update stream content started.
OPERATION_EVENT_UPDATE_CONTENT_STARTED = 5;
// Operation for update stream content ended.
OPERATION_EVENT_UPDATE_CONTENT_ENDED = 6;
// Operation for delete stream content started.
OPERATION_EVENT_DELETE_CONTENT_STARTED = 7;
// Operation for delete stream content ended.
OPERATION_EVENT_DELETE_CONTENT_ENDED = 8;
// Operation for create stream instance started.
OPERATION_EVENT_CREATE_INSTANCE_STARTED = 9;
// Operation for create stream instance ended.
OPERATION_EVENT_CREATE_INSTANCE_ENDED = 10;
// Operation for update stream instance started.
OPERATION_EVENT_UPDATE_INSTANCE_STARTED = 11;
// Operation for update stream instance ended.
OPERATION_EVENT_UPDATE_INSTANCE_ENDED = 12;
// Operation for delete stream instance started.
OPERATION_EVENT_DELETE_INSTANCE_STARTED = 13;
// Operation for delete stream instance ended.
OPERATION_EVENT_DELETE_INSTANCE_ENDED = 14;
}
// SessionEventType is the enum value for the state of session.
enum SessionEventType {
// Unspecified session event type.
SESSION_EVENT_TYPE_UNSPECIFIED = 0;
// Session in streamer shutting down state.
SESSION_EVENT_SERVER_STREAMER_SHUTTING_DOWN = 1;
// Session in streamer ready state.
SESSION_EVENT_SERVER_STREAMER_READY = 2;
// Session in streamer binary started state.
SESSION_EVENT_SERVER_STREAMER_BINARY_STARTED = 3;
// Session in streamer read pod image names state.
SESSION_EVENT_SERVER_STREAMER_READ_POD_IMAGE_NAMES = 4;
// Session in streamer connected to game state.
SESSION_EVENT_SERVER_STREAMER_CONNECTED_TO_GAME = 5;
// Session in streamer connected to client state.
SESSION_EVENT_SERVER_STREAMER_CONNECTED_TO_CLIENT = 6;
// Session in streamer disconnected from client state.
SESSION_EVENT_SERVER_STREAMER_DISCONNECTED_FROM_CLIENT = 7;
// Session in streamer received create session request state.
SESSION_EVENT_SERVER_STREAMER_RECEIVED_CREATE_SESSION_REQUEST = 8;
// Session in streamer game message to stream closed state.
SESSION_EVENT_SERVER_STREAMER_GAME_MESSAGE_STREAM_CLOSED = 9;
// Session in streamer game frame stream closed state.
SESSION_EVENT_SERVER_STREAMER_GAME_FRAME_STREAM_CLOSED = 10;
// Session in streamer game message stream error state.
SESSION_EVENT_SERVER_STREAMER_GAME_MESSAGE_STREAM_ERROR = 11;
// Session in streamer game audio stream error state.
SESSION_EVENT_SERVER_STREAMER_GAME_AUDIO_STREAM_ERROR = 12;
// Session in streamer game audio stream closed state.
SESSION_EVENT_SERVER_STREAMER_GAME_AUDIO_STREAM_CLOSED = 13;
// Session in streamer game frame stream error state.
SESSION_EVENT_SERVER_STREAMER_GAME_FRAME_STREAM_ERROR = 14;
// Session in game disconnecting after paused too long state.
SESSION_EVENT_SERVER_GAME_DISCONNECTING_AFTER_PAUSED_TOO_LONG = 15;
// Session in streamer received experiment configuration state.
SESSION_EVENT_SERVER_STREAMER_RECEIVED_EXPERIMENT_CONFIGURATION = 16;
// Session in game connected to logging service state.
SESSION_EVENT_SERVER_GAME_CONNECTED_TO_LOGGING_SERVICE = 17;
// Session in streamer determined session options state.
SESSION_EVENT_SERVER_STREAMER_DETERMINED_SESSION_OPTIONS = 18;
// Session in streamer killed in middle of session state.
SESSION_EVENT_SERVER_STREAMER_KILLED_IN_MIDDLE_OF_SESSION = 19;
// Session in game updated frame pipeline state.
SESSION_EVENT_SERVER_GAME_UPDATED_FRAME_PIPELINE = 20;
// Session in server error state.
SESSION_EVENT_SERVER_ERROR = 21;
}
Loading…
Cancel
Save