google-cloud-error_reporting 0.23.3 → 0.24.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 +4 -4
- data/lib/google/cloud/error_reporting/middleware.rb +4 -4
- data/lib/google/cloud/error_reporting/rails.rb +3 -3
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/duration.rb +6 -0
- data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/timestamp.rb +3 -5
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client.rb +3 -2
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client_config.json +3 -1
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client.rb +9 -8
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client_config.json +3 -1
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client.rb +3 -2
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client_config.json +3 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09b2cd382fd915741f345c17f5f14d822bdfa5f7
|
4
|
+
data.tar.gz: 441052f69914747bb47c7dbf085ac4f89d3520a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e02c93b66aaf87937656a5ae65f342b48cb2409863695870ba4eac0da9d315ebcff19ec6de433030c375eea4e3f2c6b47a0d6fe230c504df367a5c794c8e15cd
|
7
|
+
data.tar.gz: 6a8440e222cb88dde032a3366728fb7ee73802a5ef87b41ed70ac797287049d5fdaec3d8a7ab8f38e88c5669ec074dd09fcb49809eb54ac8d64b9f4fe4191c09
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
|
16
|
-
require "google/cloud/
|
16
|
+
require "google/cloud/env"
|
17
17
|
require "google/cloud/error_reporting/v1beta1"
|
18
18
|
require "rack"
|
19
19
|
require "rack/request"
|
@@ -64,16 +64,16 @@ module Google
|
|
64
64
|
@error_reporting = error_reporting
|
65
65
|
@service_name = service_name ||
|
66
66
|
ENV["ERROR_REPORTING_SERVICE"] ||
|
67
|
-
Google::Cloud
|
67
|
+
Google::Cloud.env.app_engine_service_id ||
|
68
68
|
"ruby"
|
69
69
|
@service_version = service_version ||
|
70
70
|
ENV["ERROR_REPORTING_VERSION"] ||
|
71
|
-
Google::Cloud
|
71
|
+
Google::Cloud.env.app_engine_service_version
|
72
72
|
@ignore_classes = Array(ignore_classes)
|
73
73
|
@project_id = project_id ||
|
74
74
|
ENV["ERROR_REPORTING_PROJECT"] ||
|
75
75
|
ENV["GOOGLE_CLOUD_PROJECT"] ||
|
76
|
-
Google::Cloud
|
76
|
+
Google::Cloud.env.project_id
|
77
77
|
|
78
78
|
fail ArgumentError, "project_id is required" if @project_id.nil?
|
79
79
|
end
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
|
16
|
-
require "google/cloud/
|
16
|
+
require "google/cloud/env"
|
17
17
|
require "google/cloud/error_reporting/v1beta1"
|
18
18
|
require "google/cloud/error_reporting/middleware"
|
19
19
|
require "google/cloud/credentials"
|
@@ -165,7 +165,7 @@ module Google
|
|
165
165
|
|
166
166
|
##
|
167
167
|
# Determine the GCP project_id from Rails configuration or environment
|
168
|
-
# variables. Default to Google::Cloud
|
168
|
+
# variables. Default to Google::Cloud.env.project_id
|
169
169
|
#
|
170
170
|
# @param [Rails::Railtie::Configuration] config The
|
171
171
|
# Rails.application.config
|
@@ -177,7 +177,7 @@ module Google
|
|
177
177
|
config.google_cloud.project_id ||
|
178
178
|
ENV["ERROR_REPORTING_PROJECT"] ||
|
179
179
|
ENV["GOOGLE_CLOUD_PROJECT"] ||
|
180
|
-
Google::Cloud
|
180
|
+
Google::Cloud.env.project_id
|
181
181
|
end
|
182
182
|
private_class_method :project_id
|
183
183
|
end
|
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
# end.seconds += 1;
|
55
55
|
# end.nanos -= 1000000000;
|
56
56
|
# }
|
57
|
+
#
|
58
|
+
# Example 3: Compute Duration from datetime.timedelta in Python.
|
59
|
+
#
|
60
|
+
# td = datetime.timedelta(days=3, minutes=10)
|
61
|
+
# duration = Duration()
|
62
|
+
# duration.FromTimedelta(td)
|
57
63
|
# @!attribute [rw] seconds
|
58
64
|
# @return [Integer]
|
59
65
|
# Signed seconds of the span of time. Must be from -315,576,000,000
|
@@ -63,14 +63,12 @@ module Google
|
|
63
63
|
#
|
64
64
|
# Example 5: Compute Timestamp from current time in Python.
|
65
65
|
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
# nanos = int((now - seconds) * 10**9)
|
69
|
-
# timestamp = Timestamp(seconds=seconds, nanos=nanos)
|
66
|
+
# timestamp = Timestamp()
|
67
|
+
# timestamp.GetCurrentTime()
|
70
68
|
# @!attribute [rw] seconds
|
71
69
|
# @return [Integer]
|
72
70
|
# Represents seconds of UTC time since Unix epoch
|
73
|
-
# 1970-01-01T00:00:00Z. Must be from
|
71
|
+
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
74
72
|
# 9999-12-31T23:59:59Z inclusive.
|
75
73
|
# @!attribute [rw] nanos
|
76
74
|
# @return [Integer]
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -26,6 +26,7 @@ require "json"
|
|
26
26
|
require "pathname"
|
27
27
|
|
28
28
|
require "google/gax"
|
29
|
+
|
29
30
|
require "google/devtools/clouderrorreporting/v1beta1/error_group_service_pb"
|
30
31
|
|
31
32
|
module Google
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -26,6 +26,7 @@ require "json"
|
|
26
26
|
require "pathname"
|
27
27
|
|
28
28
|
require "google/gax"
|
29
|
+
|
29
30
|
require "google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb"
|
30
31
|
|
31
32
|
module Google
|
@@ -183,12 +184,6 @@ module Google
|
|
183
184
|
# Platform project ID</a>.
|
184
185
|
#
|
185
186
|
# Example: <code>projects/my-project-123</code>.
|
186
|
-
# @param group_id [Array<String>]
|
187
|
-
# [Optional] List all <code>ErrorGroupStats</code> with these IDs.
|
188
|
-
# @param service_filter [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter]
|
189
|
-
# [Optional] List only <code>ErrorGroupStats</code> which belong to a service
|
190
|
-
# context that matches the filter.
|
191
|
-
# Data for all service contexts is returned if this field is not specified.
|
192
187
|
# @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
|
193
188
|
# [Optional] List data for the given time range.
|
194
189
|
# If not set a default time range is used. The field time_range_begin
|
@@ -197,6 +192,12 @@ module Google
|
|
197
192
|
# range are returned, unless the request contains an explicit group_id list.
|
198
193
|
# If a group_id list is given, also <code>ErrorGroupStats</code> with zero
|
199
194
|
# occurrences are returned.
|
195
|
+
# @param group_id [Array<String>]
|
196
|
+
# [Optional] List all <code>ErrorGroupStats</code> with these IDs.
|
197
|
+
# @param service_filter [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter]
|
198
|
+
# [Optional] List only <code>ErrorGroupStats</code> which belong to a service
|
199
|
+
# context that matches the filter.
|
200
|
+
# Data for all service contexts is returned if this field is not specified.
|
200
201
|
# @param timed_count_duration [Google::Protobuf::Duration]
|
201
202
|
# [Optional] The preferred duration for a single returned +TimedCount+.
|
202
203
|
# If not set, no timed counts are returned.
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
8
|
#
|
9
9
|
# Unless required by applicable law or agreed to in writing, software
|
10
10
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -26,6 +26,7 @@ require "json"
|
|
26
26
|
require "pathname"
|
27
27
|
|
28
28
|
require "google/gax"
|
29
|
+
|
29
30
|
require "google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb"
|
30
31
|
|
31
32
|
module Google
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-error_reporting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-gax
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
205
|
rubyforge_project:
|
206
|
-
rubygems_version: 2.6.
|
206
|
+
rubygems_version: 2.6.11
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: API Client library for Stackdriver Error Reporting
|