google-cloud-error_reporting 0.35.2 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +2 -1
  3. data/CHANGELOG.md +23 -0
  4. data/lib/google-cloud-error_reporting.rb +7 -14
  5. data/lib/google/cloud/error_reporting.rb +16 -13
  6. data/lib/google/cloud/error_reporting/credentials.rb +2 -2
  7. data/lib/google/cloud/error_reporting/error_event.rb +14 -18
  8. data/lib/google/cloud/error_reporting/service.rb +12 -36
  9. data/lib/google/cloud/error_reporting/version.rb +1 -1
  10. metadata +7 -68
  11. data/lib/google/cloud/error_reporting/v1beta1.rb +0 -19
  12. data/lib/google/cloud/error_reporting/v1beta1/credentials.rb +0 -41
  13. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/common.rb +0 -158
  14. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_group_service.rb +0 -39
  15. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_stats_service.rb +0 -314
  16. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb +0 -79
  17. data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/duration.rb +0 -91
  18. data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/timestamp.rb +0 -113
  19. data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client.rb +0 -283
  20. data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client_config.json +0 -36
  21. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client.rb +0 -457
  22. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client_config.json +0 -41
  23. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client.rb +0 -254
  24. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client_config.json +0 -31
  25. data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +0 -64
  26. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +0 -30
  27. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +0 -50
  28. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +0 -116
  29. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +0 -52
  30. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +0 -38
  31. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +0 -55
@@ -1,116 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
12
- require 'google/protobuf/duration_pb'
13
- require 'google/protobuf/timestamp_pb'
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest" do
16
- optional :project_name, :string, 1
17
- repeated :group_id, :string, 2
18
- optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter"
19
- optional :time_range, :message, 5, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange"
20
- optional :timed_count_duration, :message, 6, "google.protobuf.Duration"
21
- optional :alignment, :enum, 7, "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment"
22
- optional :alignment_time, :message, 8, "google.protobuf.Timestamp"
23
- optional :order, :enum, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder"
24
- optional :page_size, :int32, 11
25
- optional :page_token, :string, 12
26
- end
27
- add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse" do
28
- repeated :error_group_stats, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats"
29
- optional :next_page_token, :string, 2
30
- optional :time_range_begin, :message, 4, "google.protobuf.Timestamp"
31
- end
32
- add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats" do
33
- optional :group, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroup"
34
- optional :count, :int64, 2
35
- optional :affected_users_count, :int64, 3
36
- repeated :timed_counts, :message, 4, "google.devtools.clouderrorreporting.v1beta1.TimedCount"
37
- optional :first_seen_time, :message, 5, "google.protobuf.Timestamp"
38
- optional :last_seen_time, :message, 6, "google.protobuf.Timestamp"
39
- repeated :affected_services, :message, 7, "google.devtools.clouderrorreporting.v1beta1.ServiceContext"
40
- optional :num_affected_services, :int32, 8
41
- optional :representative, :message, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
42
- end
43
- add_message "google.devtools.clouderrorreporting.v1beta1.TimedCount" do
44
- optional :count, :int64, 1
45
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
46
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
47
- end
48
- add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsRequest" do
49
- optional :project_name, :string, 1
50
- optional :group_id, :string, 2
51
- optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter"
52
- optional :time_range, :message, 4, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange"
53
- optional :page_size, :int32, 6
54
- optional :page_token, :string, 7
55
- end
56
- add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsResponse" do
57
- repeated :error_events, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
58
- optional :next_page_token, :string, 2
59
- optional :time_range_begin, :message, 4, "google.protobuf.Timestamp"
60
- end
61
- add_message "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" do
62
- optional :period, :enum, 1, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period"
63
- end
64
- add_enum "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period" do
65
- value :PERIOD_UNSPECIFIED, 0
66
- value :PERIOD_1_HOUR, 1
67
- value :PERIOD_6_HOURS, 2
68
- value :PERIOD_1_DAY, 3
69
- value :PERIOD_1_WEEK, 4
70
- value :PERIOD_30_DAYS, 5
71
- end
72
- add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" do
73
- optional :service, :string, 2
74
- optional :version, :string, 3
75
- optional :resource_type, :string, 4
76
- end
77
- add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest" do
78
- optional :project_name, :string, 1
79
- end
80
- add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse" do
81
- end
82
- add_enum "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" do
83
- value :ERROR_COUNT_ALIGNMENT_UNSPECIFIED, 0
84
- value :ALIGNMENT_EQUAL_ROUNDED, 1
85
- value :ALIGNMENT_EQUAL_AT_END, 2
86
- end
87
- add_enum "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" do
88
- value :GROUP_ORDER_UNSPECIFIED, 0
89
- value :COUNT_DESC, 1
90
- value :LAST_SEEN_DESC, 2
91
- value :CREATED_DESC, 3
92
- value :AFFECTED_USERS_DESC, 4
93
- end
94
- end
95
-
96
- module Google
97
- module Devtools
98
- module Clouderrorreporting
99
- module V1beta1
100
- ListGroupStatsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest").msgclass
101
- ListGroupStatsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse").msgclass
102
- ErrorGroupStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats").msgclass
103
- TimedCount = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.TimedCount").msgclass
104
- ListEventsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListEventsRequest").msgclass
105
- ListEventsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListEventsResponse").msgclass
106
- QueryTimeRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange").msgclass
107
- QueryTimeRange::Period = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period").enummodule
108
- ServiceContextFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter").msgclass
109
- DeleteEventsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest").msgclass
110
- DeleteEventsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse").msgclass
111
- TimedCountAlignment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment").enummodule
112
- ErrorGroupOrder = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder").enummodule
113
- end
114
- end
115
- end
116
- end
@@ -1,52 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto for package 'google.devtools.clouderrorreporting.v1beta1'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
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
-
20
-
21
- require 'grpc'
22
- require 'google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb'
23
-
24
- module Google
25
- module Devtools
26
- module Clouderrorreporting
27
- module V1beta1
28
- module ErrorStatsService
29
- # An API for retrieving and managing error statistics as well as data for
30
- # individual events.
31
- class Service
32
-
33
- include GRPC::GenericService
34
-
35
- self.marshal_class_method = :encode
36
- self.unmarshal_class_method = :decode
37
- self.service_name = 'google.devtools.clouderrorreporting.v1beta1.ErrorStatsService'
38
-
39
- # Lists the specified groups.
40
- rpc :ListGroupStats, ListGroupStatsRequest, ListGroupStatsResponse
41
- # Lists the specified events.
42
- rpc :ListEvents, ListEventsRequest, ListEventsResponse
43
- # Deletes all error events of a given project.
44
- rpc :DeleteEvents, DeleteEventsRequest, DeleteEventsResponse
45
- end
46
-
47
- Stub = Service.rpc_stub_class
48
- end
49
- end
50
- end
51
- end
52
- end
@@ -1,38 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
12
- require 'google/protobuf/timestamp_pb'
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_message "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest" do
15
- optional :project_name, :string, 1
16
- optional :event, :message, 2, "google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent"
17
- end
18
- add_message "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse" do
19
- end
20
- add_message "google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent" do
21
- optional :event_time, :message, 1, "google.protobuf.Timestamp"
22
- optional :service_context, :message, 2, "google.devtools.clouderrorreporting.v1beta1.ServiceContext"
23
- optional :message, :string, 3
24
- optional :context, :message, 4, "google.devtools.clouderrorreporting.v1beta1.ErrorContext"
25
- end
26
- end
27
-
28
- module Google
29
- module Devtools
30
- module Clouderrorreporting
31
- module V1beta1
32
- ReportErrorEventRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest").msgclass
33
- ReportErrorEventResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse").msgclass
34
- ReportedErrorEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent").msgclass
35
- end
36
- end
37
- end
38
- end
@@ -1,55 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto for package 'google.devtools.clouderrorreporting.v1beta1'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
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
-
20
-
21
- require 'grpc'
22
- require 'google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb'
23
-
24
- module Google
25
- module Devtools
26
- module Clouderrorreporting
27
- module V1beta1
28
- module ReportErrorsService
29
- # An API for reporting error events.
30
- class Service
31
-
32
- include GRPC::GenericService
33
-
34
- self.marshal_class_method = :encode
35
- self.unmarshal_class_method = :decode
36
- self.service_name = 'google.devtools.clouderrorreporting.v1beta1.ReportErrorsService'
37
-
38
- # Report an individual error event.
39
- #
40
- # This endpoint accepts **either** an OAuth token,
41
- # **or** an [API key](https://support.google.com/cloud/answer/6158862)
42
- # for authentication. To use an API key, append it to the URL as the value of
43
- # a `key` parameter. For example:
44
- #
45
- # `POST
46
- # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
47
- rpc :ReportErrorEvent, ReportErrorEventRequest, ReportErrorEventResponse
48
- end
49
-
50
- Stub = Service.rpc_stub_class
51
- end
52
- end
53
- end
54
- end
55
- end