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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3f41554483680d3ccbe6415eca04e6f7c8fe3c3
4
- data.tar.gz: f20a4dba40c6ce96ba83347c91f3d4588f7226b6
3
+ metadata.gz: 09b2cd382fd915741f345c17f5f14d822bdfa5f7
4
+ data.tar.gz: 441052f69914747bb47c7dbf085ac4f89d3520a2
5
5
  SHA512:
6
- metadata.gz: 330d5f6194b0c24f94bbafa78b7cf39a4fb35fb21ac3ad54b82e0508974ed681e1b4c9df6865ef59aa834ef5701416956ea6cbf7711939295298a95fc27b911a
7
- data.tar.gz: abe184531ba923e501c7455d15847ad49a31c12023c3e2cbb17f9fd0329599958cc65134c2de2827b5d59679e1c9d6d2496c228109ac90b6d9b6a6aa74de2cc7
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/core/environment"
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::Core::Environment.gae_module_id ||
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::Core::Environment.gae_module_version
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::Core::Environment.project_id
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/core/environment"
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::Core::Environment.project_id
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::Core::Environment.project_id
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
- # now = time.time()
67
- # seconds = int(now)
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 from 0001-01-01T00:00:00Z to
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 2016 Google Inc. All rights reserved.
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
- # http://www.apache.org/licenses/LICENSE-2.0
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
@@ -6,7 +6,9 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
10
12
  },
11
13
  "retry_params": {
12
14
  "default": {
@@ -1,10 +1,10 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
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
- # http://www.apache.org/licenses/LICENSE-2.0
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.
@@ -6,7 +6,9 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
10
12
  },
11
13
  "retry_params": {
12
14
  "default": {
@@ -1,10 +1,10 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
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
- # http://www.apache.org/licenses/LICENSE-2.0
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
@@ -6,7 +6,9 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
10
12
  },
11
13
  "retry_params": {
12
14
  "default": {
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.23.3
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-03-04 00:00:00.000000000 Z
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: 0.21.0
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: 0.21.0
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.10
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