google-cloud-error_reporting 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +82 -0
- data/Rakefile +72 -0
- data/lib/google/cloud/error_reporting/middleware.rb +242 -0
- data/lib/google/cloud/error_reporting/rails.rb +173 -0
- data/lib/google/cloud/error_reporting/v1beta1.rb +24 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service_api.rb +229 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client_config.json +38 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_api.rb +371 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client_config.json +43 -0
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_api.rb +196 -0
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client_config.json +33 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +61 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +26 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +48 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +109 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +50 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +34 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +52 -0
- metadata +257 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.devtools.clouderrorreporting.v1beta1.ErrorStatsService": {
|
4
|
+
"retry_codes": {
|
5
|
+
"retry_codes_def": {
|
6
|
+
"idempotent": [
|
7
|
+
"DEADLINE_EXCEEDED",
|
8
|
+
"UNAVAILABLE"
|
9
|
+
],
|
10
|
+
"non_idempotent": []
|
11
|
+
}
|
12
|
+
},
|
13
|
+
"retry_params": {
|
14
|
+
"default": {
|
15
|
+
"initial_retry_delay_millis": 100,
|
16
|
+
"retry_delay_multiplier": 1.3,
|
17
|
+
"max_retry_delay_millis": 60000,
|
18
|
+
"initial_rpc_timeout_millis": 20000,
|
19
|
+
"rpc_timeout_multiplier": 1.0,
|
20
|
+
"max_rpc_timeout_millis": 20000,
|
21
|
+
"total_timeout_millis": 600000
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"methods": {
|
25
|
+
"ListGroupStats": {
|
26
|
+
"timeout_millis": 60000,
|
27
|
+
"retry_codes_name": "idempotent",
|
28
|
+
"retry_params_name": "default"
|
29
|
+
},
|
30
|
+
"ListEvents": {
|
31
|
+
"timeout_millis": 60000,
|
32
|
+
"retry_codes_name": "idempotent",
|
33
|
+
"retry_params_name": "default"
|
34
|
+
},
|
35
|
+
"DeleteEvents": {
|
36
|
+
"timeout_millis": 60000,
|
37
|
+
"retry_codes_name": "idempotent",
|
38
|
+
"retry_params_name": "default"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,196 @@
|
|
1
|
+
# Copyright 2016 Google Inc. All rights reserved.
|
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
|
+
# EDITING INSTRUCTIONS
|
16
|
+
# This file was generated from the file
|
17
|
+
# https://github.com/googleapis/googleapis/blob/master/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto,
|
18
|
+
# and updates to that file get reflected here through a refresh process.
|
19
|
+
# For the short term, the refresh process will only be runnable by Google
|
20
|
+
# engineers.
|
21
|
+
#
|
22
|
+
# The only allowed edits are to method and file documentation. A 3-way
|
23
|
+
# merge preserves those additions if the generated source changes.
|
24
|
+
|
25
|
+
require "json"
|
26
|
+
require "pathname"
|
27
|
+
|
28
|
+
require "google/gax"
|
29
|
+
require "google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module ErrorReporting
|
34
|
+
module V1beta1
|
35
|
+
# An API for reporting error events.
|
36
|
+
#
|
37
|
+
# @!attribute [r] report_errors_service_stub
|
38
|
+
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorsService::Stub]
|
39
|
+
class ReportErrorsServiceApi
|
40
|
+
attr_reader :report_errors_service_stub
|
41
|
+
|
42
|
+
# The default address of the service.
|
43
|
+
SERVICE_ADDRESS = "clouderrorreporting.googleapis.com".freeze
|
44
|
+
|
45
|
+
# The default port of the service.
|
46
|
+
DEFAULT_SERVICE_PORT = 443
|
47
|
+
|
48
|
+
CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
|
49
|
+
|
50
|
+
DEFAULT_TIMEOUT = 30
|
51
|
+
|
52
|
+
# The scopes needed to make gRPC calls to all of the methods defined in
|
53
|
+
# this service.
|
54
|
+
ALL_SCOPES = [
|
55
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
56
|
+
].freeze
|
57
|
+
|
58
|
+
PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
59
|
+
"projects/{project}"
|
60
|
+
)
|
61
|
+
|
62
|
+
private_constant :PROJECT_PATH_TEMPLATE
|
63
|
+
|
64
|
+
# Returns a fully-qualified project resource name string.
|
65
|
+
# @param project [String]
|
66
|
+
# @return [String]
|
67
|
+
def self.project_path project
|
68
|
+
PROJECT_PATH_TEMPLATE.render(
|
69
|
+
:"project" => project
|
70
|
+
)
|
71
|
+
end
|
72
|
+
|
73
|
+
# Parses the project from a project resource.
|
74
|
+
# @param project_name [String]
|
75
|
+
# @return [String]
|
76
|
+
def self.match_project_from_project_name project_name
|
77
|
+
PROJECT_PATH_TEMPLATE.match(project_name)["project"]
|
78
|
+
end
|
79
|
+
|
80
|
+
# @param service_path [String]
|
81
|
+
# The domain name of the API remote host.
|
82
|
+
# @param port [Integer]
|
83
|
+
# The port on which to connect to the remote host.
|
84
|
+
# @param channel [Channel]
|
85
|
+
# A Channel object through which to make calls.
|
86
|
+
# @param chan_creds [Grpc::ChannelCredentials]
|
87
|
+
# A ChannelCredentials for the setting up the RPC client.
|
88
|
+
# @param client_config[Hash]
|
89
|
+
# A Hash for call options for each method. See
|
90
|
+
# Google::Gax#construct_settings for the structure of
|
91
|
+
# this data. Falls back to the default config if not specified
|
92
|
+
# or the specified config is missing data points.
|
93
|
+
# @param timeout [Numeric]
|
94
|
+
# The default timeout, in seconds, for calls made through this client.
|
95
|
+
# @param app_name [String]
|
96
|
+
# The codename of the calling service.
|
97
|
+
# @param app_version [String]
|
98
|
+
# The version of the calling service.
|
99
|
+
def initialize \
|
100
|
+
service_path: SERVICE_ADDRESS,
|
101
|
+
port: DEFAULT_SERVICE_PORT,
|
102
|
+
channel: nil,
|
103
|
+
chan_creds: nil,
|
104
|
+
scopes: ALL_SCOPES,
|
105
|
+
client_config: {},
|
106
|
+
timeout: DEFAULT_TIMEOUT,
|
107
|
+
app_name: "gax",
|
108
|
+
app_version: Google::Gax::VERSION
|
109
|
+
# These require statements are intentionally placed here to initialize
|
110
|
+
# the gRPC module only when it's required.
|
111
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
112
|
+
require "google/gax/grpc"
|
113
|
+
require "google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb"
|
114
|
+
|
115
|
+
google_api_client = "#{app_name}/#{app_version} " \
|
116
|
+
"#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
|
117
|
+
"ruby/#{RUBY_VERSION}".freeze
|
118
|
+
headers = { :"x-goog-api-client" => google_api_client }
|
119
|
+
client_config_file = Pathname.new(__dir__).join(
|
120
|
+
"report_errors_service_client_config.json"
|
121
|
+
)
|
122
|
+
defaults = client_config_file.open do |f|
|
123
|
+
Google::Gax.construct_settings(
|
124
|
+
"google.devtools.clouderrorreporting.v1beta1.ReportErrorsService",
|
125
|
+
JSON.parse(f.read),
|
126
|
+
client_config,
|
127
|
+
Google::Gax::Grpc::STATUS_CODE_NAMES,
|
128
|
+
timeout,
|
129
|
+
errors: Google::Gax::Grpc::API_ERRORS,
|
130
|
+
kwargs: headers
|
131
|
+
)
|
132
|
+
end
|
133
|
+
@report_errors_service_stub = Google::Gax::Grpc.create_stub(
|
134
|
+
service_path,
|
135
|
+
port,
|
136
|
+
chan_creds: chan_creds,
|
137
|
+
channel: channel,
|
138
|
+
scopes: scopes,
|
139
|
+
&Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorsService::Stub.method(:new)
|
140
|
+
)
|
141
|
+
|
142
|
+
@report_error_event = Google::Gax.create_api_call(
|
143
|
+
@report_errors_service_stub.method(:report_error_event),
|
144
|
+
defaults["report_error_event"]
|
145
|
+
)
|
146
|
+
end
|
147
|
+
|
148
|
+
# Service calls
|
149
|
+
|
150
|
+
# Report an individual error event.
|
151
|
+
#
|
152
|
+
# This endpoint accepts <strong>either</strong> an OAuth token,
|
153
|
+
# <strong>or</strong> an
|
154
|
+
# <a href="https://support.google.com/cloud/answer/6158862">API key</a>
|
155
|
+
# for authentication. To use an API key, append it to the URL as the value of
|
156
|
+
# a +key+ parameter. For example:
|
157
|
+
# <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
|
158
|
+
#
|
159
|
+
# @param project_name [String]
|
160
|
+
# [Required] The resource name of the Google Cloud Platform project. Written
|
161
|
+
# as +projects/+ plus the
|
162
|
+
# {Google Cloud Platform project ID}[https://support.google.com/cloud/answer/6158840].
|
163
|
+
# Example: +projects/my-project-123+.
|
164
|
+
# @param event [Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent]
|
165
|
+
# [Required] The error event to be reported.
|
166
|
+
# @param options [Google::Gax::CallOptions]
|
167
|
+
# Overrides the default settings for this call, e.g, timeout,
|
168
|
+
# retries, etc.
|
169
|
+
# @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorEventResponse]
|
170
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
171
|
+
# @example
|
172
|
+
# require "google/cloud/error_reporting/v1beta1/report_errors_service_api"
|
173
|
+
#
|
174
|
+
# ReportErrorsServiceApi = Google::Cloud::ErrorReporting::V1beta1::ReportErrorsServiceApi
|
175
|
+
# ReportedErrorEvent = Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent
|
176
|
+
#
|
177
|
+
# report_errors_service_api = ReportErrorsServiceApi.new
|
178
|
+
# formatted_project_name = ReportErrorsServiceApi.project_path("[PROJECT]")
|
179
|
+
# event = ReportedErrorEvent.new
|
180
|
+
# response = report_errors_service_api.report_error_event(formatted_project_name, event)
|
181
|
+
|
182
|
+
def report_error_event \
|
183
|
+
project_name,
|
184
|
+
event,
|
185
|
+
options: nil
|
186
|
+
req = Google::Devtools::Clouderrorreporting::V1beta1::ReportErrorEventRequest.new(
|
187
|
+
project_name: project_name,
|
188
|
+
event: event
|
189
|
+
)
|
190
|
+
@report_error_event.call(req, options)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.devtools.clouderrorreporting.v1beta1.ReportErrorsService": {
|
4
|
+
"retry_codes": {
|
5
|
+
"retry_codes_def": {
|
6
|
+
"idempotent": [
|
7
|
+
"DEADLINE_EXCEEDED",
|
8
|
+
"UNAVAILABLE"
|
9
|
+
],
|
10
|
+
"non_idempotent": []
|
11
|
+
}
|
12
|
+
},
|
13
|
+
"retry_params": {
|
14
|
+
"default": {
|
15
|
+
"initial_retry_delay_millis": 100,
|
16
|
+
"retry_delay_multiplier": 1.3,
|
17
|
+
"max_retry_delay_millis": 60000,
|
18
|
+
"initial_rpc_timeout_millis": 20000,
|
19
|
+
"rpc_timeout_multiplier": 1.0,
|
20
|
+
"max_rpc_timeout_millis": 20000,
|
21
|
+
"total_timeout_millis": 600000
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"methods": {
|
25
|
+
"ReportErrorEvent": {
|
26
|
+
"timeout_millis": 60000,
|
27
|
+
"retry_codes_name": "non_idempotent",
|
28
|
+
"retry_params_name": "default"
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/clouderrorreporting/v1beta1/common.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" do
|
10
|
+
optional :name, :string, 1
|
11
|
+
optional :group_id, :string, 2
|
12
|
+
repeated :tracking_issues, :message, 3, "google.devtools.clouderrorreporting.v1beta1.TrackingIssue"
|
13
|
+
end
|
14
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.TrackingIssue" do
|
15
|
+
optional :url, :string, 1
|
16
|
+
end
|
17
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ErrorEvent" do
|
18
|
+
optional :event_time, :message, 1, "google.protobuf.Timestamp"
|
19
|
+
optional :service_context, :message, 2, "google.devtools.clouderrorreporting.v1beta1.ServiceContext"
|
20
|
+
optional :message, :string, 3
|
21
|
+
optional :context, :message, 5, "google.devtools.clouderrorreporting.v1beta1.ErrorContext"
|
22
|
+
end
|
23
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContext" do
|
24
|
+
optional :service, :string, 2
|
25
|
+
optional :version, :string, 3
|
26
|
+
end
|
27
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ErrorContext" do
|
28
|
+
optional :http_request, :message, 1, "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext"
|
29
|
+
optional :user, :string, 2
|
30
|
+
optional :report_location, :message, 3, "google.devtools.clouderrorreporting.v1beta1.SourceLocation"
|
31
|
+
end
|
32
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext" do
|
33
|
+
optional :method, :string, 1
|
34
|
+
optional :url, :string, 2
|
35
|
+
optional :user_agent, :string, 3
|
36
|
+
optional :referrer, :string, 4
|
37
|
+
optional :response_status_code, :int32, 5
|
38
|
+
optional :remote_ip, :string, 6
|
39
|
+
end
|
40
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.SourceLocation" do
|
41
|
+
optional :file_path, :string, 1
|
42
|
+
optional :line_number, :int32, 2
|
43
|
+
optional :function_name, :string, 4
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
module Google
|
48
|
+
module Devtools
|
49
|
+
module Clouderrorreporting
|
50
|
+
module V1beta1
|
51
|
+
ErrorGroup = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorGroup").msgclass
|
52
|
+
TrackingIssue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.TrackingIssue").msgclass
|
53
|
+
ErrorEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorEvent").msgclass
|
54
|
+
ServiceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ServiceContext").msgclass
|
55
|
+
ErrorContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorContext").msgclass
|
56
|
+
HttpRequestContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.HttpRequestContext").msgclass
|
57
|
+
SourceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.SourceLocation").msgclass
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest" do
|
10
|
+
optional :group_name, :string, 1
|
11
|
+
end
|
12
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest" do
|
13
|
+
optional :group, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroup"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Devtools
|
19
|
+
module Clouderrorreporting
|
20
|
+
module V1beta1
|
21
|
+
GetGroupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.GetGroupRequest").msgclass
|
22
|
+
UpdateGroupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest").msgclass
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto for package 'google.devtools.clouderrorreporting.v1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2016 Google Inc.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/devtools/clouderrorreporting/v1beta1/error_group_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Devtools
|
24
|
+
module Clouderrorreporting
|
25
|
+
module V1beta1
|
26
|
+
module ErrorGroupService
|
27
|
+
# Service for retrieving and updating individual error groups.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.devtools.clouderrorreporting.v1beta1.ErrorGroupService'
|
35
|
+
|
36
|
+
# Get the specified group.
|
37
|
+
rpc :GetGroup, GetGroupRequest, ErrorGroup
|
38
|
+
# Replace the data for the specified group.
|
39
|
+
# Fails if the group does not exist.
|
40
|
+
rpc :UpdateGroup, UpdateGroupRequest, ErrorGroup
|
41
|
+
end
|
42
|
+
|
43
|
+
Stub = Service.rpc_stub_class
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest" do
|
12
|
+
optional :project_name, :string, 1
|
13
|
+
repeated :group_id, :string, 2
|
14
|
+
optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter"
|
15
|
+
optional :time_range, :message, 5, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange"
|
16
|
+
optional :timed_count_duration, :message, 6, "google.protobuf.Duration"
|
17
|
+
optional :alignment, :enum, 7, "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment"
|
18
|
+
optional :alignment_time, :message, 8, "google.protobuf.Timestamp"
|
19
|
+
optional :order, :enum, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder"
|
20
|
+
optional :page_size, :int32, 11
|
21
|
+
optional :page_token, :string, 12
|
22
|
+
end
|
23
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse" do
|
24
|
+
repeated :error_group_stats, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats"
|
25
|
+
optional :next_page_token, :string, 2
|
26
|
+
end
|
27
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats" do
|
28
|
+
optional :group, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroup"
|
29
|
+
optional :count, :int64, 2
|
30
|
+
optional :affected_users_count, :int64, 3
|
31
|
+
repeated :timed_counts, :message, 4, "google.devtools.clouderrorreporting.v1beta1.TimedCount"
|
32
|
+
optional :first_seen_time, :message, 5, "google.protobuf.Timestamp"
|
33
|
+
optional :last_seen_time, :message, 6, "google.protobuf.Timestamp"
|
34
|
+
repeated :affected_services, :message, 7, "google.devtools.clouderrorreporting.v1beta1.ServiceContext"
|
35
|
+
optional :num_affected_services, :int32, 8
|
36
|
+
optional :representative, :message, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
|
37
|
+
end
|
38
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.TimedCount" do
|
39
|
+
optional :count, :int64, 1
|
40
|
+
optional :start_time, :message, 2, "google.protobuf.Timestamp"
|
41
|
+
optional :end_time, :message, 3, "google.protobuf.Timestamp"
|
42
|
+
end
|
43
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsRequest" do
|
44
|
+
optional :project_name, :string, 1
|
45
|
+
optional :group_id, :string, 2
|
46
|
+
optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter"
|
47
|
+
optional :time_range, :message, 4, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange"
|
48
|
+
optional :page_size, :int32, 6
|
49
|
+
optional :page_token, :string, 7
|
50
|
+
end
|
51
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsResponse" do
|
52
|
+
repeated :error_events, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
|
53
|
+
optional :next_page_token, :string, 2
|
54
|
+
end
|
55
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" do
|
56
|
+
optional :period, :enum, 1, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period"
|
57
|
+
end
|
58
|
+
add_enum "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period" do
|
59
|
+
value :PERIOD_UNSPECIFIED, 0
|
60
|
+
value :PERIOD_1_HOUR, 1
|
61
|
+
value :PERIOD_6_HOURS, 2
|
62
|
+
value :PERIOD_1_DAY, 3
|
63
|
+
value :PERIOD_1_WEEK, 4
|
64
|
+
value :PERIOD_30_DAYS, 5
|
65
|
+
end
|
66
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" do
|
67
|
+
optional :service, :string, 2
|
68
|
+
optional :version, :string, 3
|
69
|
+
end
|
70
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest" do
|
71
|
+
optional :project_name, :string, 1
|
72
|
+
end
|
73
|
+
add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse" do
|
74
|
+
end
|
75
|
+
add_enum "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" do
|
76
|
+
value :ERROR_COUNT_ALIGNMENT_UNSPECIFIED, 0
|
77
|
+
value :ALIGNMENT_EQUAL_ROUNDED, 1
|
78
|
+
value :ALIGNMENT_EQUAL_AT_END, 2
|
79
|
+
end
|
80
|
+
add_enum "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" do
|
81
|
+
value :GROUP_ORDER_UNSPECIFIED, 0
|
82
|
+
value :COUNT_DESC, 1
|
83
|
+
value :LAST_SEEN_DESC, 2
|
84
|
+
value :CREATED_DESC, 3
|
85
|
+
value :AFFECTED_USERS_DESC, 4
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
module Google
|
90
|
+
module Devtools
|
91
|
+
module Clouderrorreporting
|
92
|
+
module V1beta1
|
93
|
+
ListGroupStatsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest").msgclass
|
94
|
+
ListGroupStatsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse").msgclass
|
95
|
+
ErrorGroupStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats").msgclass
|
96
|
+
TimedCount = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.TimedCount").msgclass
|
97
|
+
ListEventsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListEventsRequest").msgclass
|
98
|
+
ListEventsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListEventsResponse").msgclass
|
99
|
+
QueryTimeRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange").msgclass
|
100
|
+
QueryTimeRange::Period = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period").enummodule
|
101
|
+
ServiceContextFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter").msgclass
|
102
|
+
DeleteEventsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest").msgclass
|
103
|
+
DeleteEventsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse").msgclass
|
104
|
+
TimedCountAlignment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment").enummodule
|
105
|
+
ErrorGroupOrder = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder").enummodule
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|