google-cloud-debugger 0.28.2 → 0.29.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 +5 -5
- data/README.md +33 -33
- data/lib/google-cloud-debugger.rb +12 -9
- data/lib/google/cloud/debugger.rb +23 -17
- data/lib/google/cloud/debugger/credentials.rb +32 -15
- data/lib/google/cloud/debugger/debuggee.rb +16 -1
- data/lib/google/cloud/debugger/middleware.rb +1 -1
- data/lib/google/cloud/debugger/project.rb +6 -5
- data/lib/google/cloud/debugger/rails.rb +9 -3
- data/lib/google/cloud/debugger/service.rb +4 -24
- data/lib/google/cloud/debugger/v2.rb +182 -0
- data/lib/google/cloud/debugger/v2/controller2_client.rb +85 -58
- data/lib/google/cloud/debugger/v2/debugger2_client.rb +81 -56
- data/lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/data.rb +24 -27
- data/lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/debugger.rb +23 -11
- data/lib/google/cloud/debugger/v2/doc/google/protobuf/timestamp.rb +26 -1
- data/lib/google/cloud/debugger/v2/doc/overview.rb +54 -0
- data/lib/google/cloud/debugger/version.rb +1 -1
- data/lib/google/devtools/clouddebugger/v2/controller_services_pb.rb +10 -11
- data/lib/google/devtools/clouddebugger/v2/debugger_services_pb.rb +4 -4
- metadata +8 -7
@@ -24,7 +24,9 @@ module Google
|
|
24
24
|
# 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
|
25
25
|
# By restricting to that range, we ensure that we can convert to
|
26
26
|
# and from RFC 3339 date strings.
|
27
|
-
# See
|
27
|
+
# See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
|
28
|
+
#
|
29
|
+
# = Examples
|
28
30
|
#
|
29
31
|
# Example 1: Compute Timestamp from POSIX +time()+.
|
30
32
|
#
|
@@ -65,6 +67,29 @@ module Google
|
|
65
67
|
#
|
66
68
|
# timestamp = Timestamp()
|
67
69
|
# timestamp.GetCurrentTime()
|
70
|
+
#
|
71
|
+
# = JSON Mapping
|
72
|
+
#
|
73
|
+
# In JSON format, the Timestamp type is encoded as a string in the
|
74
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
75
|
+
# format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
76
|
+
# where {year} is always expressed using four digits while {month}, {day},
|
77
|
+
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
78
|
+
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
79
|
+
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
80
|
+
# is required, though only UTC (as indicated by "Z") is presently supported.
|
81
|
+
#
|
82
|
+
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
83
|
+
# 01:30 UTC on January 15, 2017.
|
84
|
+
#
|
85
|
+
# In JavaScript, one can convert a Date object to this format using the
|
86
|
+
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
|
87
|
+
# method. In Python, a standard +datetime.datetime+ object can be converted
|
88
|
+
# to this format using [+strftime+](https://docs.python.org/2/library/time.html#time.strftime)
|
89
|
+
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
90
|
+
# can use the Joda Time's [+ISODateTimeFormat.dateTime()+](
|
91
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime())
|
92
|
+
# to obtain a formatter capable of generating timestamps in this format.
|
68
93
|
# @!attribute [rw] seconds
|
69
94
|
# @return [Integer]
|
70
95
|
# Represents seconds of UTC time since Unix epoch
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Copyright 2017, 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
|
+
module Google
|
16
|
+
module Cloud
|
17
|
+
# rubocop:disable LineLength
|
18
|
+
|
19
|
+
##
|
20
|
+
# # Ruby Client for Stackdriver Debugger API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
21
|
+
#
|
22
|
+
# [Stackdriver Debugger API][Product Documentation]:
|
23
|
+
# Examines the call stack and variables of a running application
|
24
|
+
# without stopping or slowing it down.
|
25
|
+
# - [Product Documentation][]
|
26
|
+
#
|
27
|
+
# ## Quick Start
|
28
|
+
# In order to use this library, you first need to go through the following
|
29
|
+
# steps:
|
30
|
+
#
|
31
|
+
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
32
|
+
# 2. [Enable the Stackdriver Debugger API.](https://console.cloud.google.com/apis/api/debugger)
|
33
|
+
# 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
34
|
+
#
|
35
|
+
# ### Installation
|
36
|
+
# ```
|
37
|
+
# $ gem install google-cloud-debugger
|
38
|
+
# ```
|
39
|
+
#
|
40
|
+
# ### Next Steps
|
41
|
+
# - Read the [Stackdriver Debugger API Product documentation][Product Documentation]
|
42
|
+
# to learn more about the product and see How-to Guides.
|
43
|
+
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
44
|
+
# to see the full list of Cloud APIs that we cover.
|
45
|
+
#
|
46
|
+
# [Product Documentation]: https://cloud.google.com/debugger
|
47
|
+
#
|
48
|
+
#
|
49
|
+
module Debugger
|
50
|
+
module V2
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -54,18 +54,18 @@ module Google
|
|
54
54
|
|
55
55
|
# Registers the debuggee with the controller service.
|
56
56
|
#
|
57
|
-
# All agents attached to the same application
|
58
|
-
# the same request content to get back the same stable `debuggee_id`.
|
59
|
-
# should call this method again whenever `google.rpc.Code.NOT_FOUND`
|
60
|
-
# returned from any controller method.
|
57
|
+
# All agents attached to the same application must call this method with
|
58
|
+
# exactly the same request content to get back the same stable `debuggee_id`.
|
59
|
+
# Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
|
60
|
+
# is returned from any controller method.
|
61
61
|
#
|
62
|
-
# This allows the controller service to disable
|
63
|
-
# data loss
|
64
|
-
#
|
62
|
+
# This protocol allows the controller service to disable debuggees, recover
|
63
|
+
# from data loss, or change the `debuggee_id` format. Agents must handle
|
64
|
+
# `debuggee_id` value changing upon re-registration.
|
65
65
|
rpc :RegisterDebuggee, RegisterDebuggeeRequest, RegisterDebuggeeResponse
|
66
66
|
# Returns the list of all active breakpoints for the debuggee.
|
67
67
|
#
|
68
|
-
# The breakpoint specification (location
|
68
|
+
# The breakpoint specification (`location`, `condition`, and `expressions`
|
69
69
|
# fields) is semantically immutable, although the field values may
|
70
70
|
# change. For example, an agent may update the location line number
|
71
71
|
# to reflect the actual line where the breakpoint was set, but this
|
@@ -78,12 +78,11 @@ module Google
|
|
78
78
|
# setting those breakpoints again.
|
79
79
|
rpc :ListActiveBreakpoints, ListActiveBreakpointsRequest, ListActiveBreakpointsResponse
|
80
80
|
# Updates the breakpoint state or mutable fields.
|
81
|
-
# The entire Breakpoint message must be sent back to the controller
|
82
|
-
# service.
|
81
|
+
# The entire Breakpoint message must be sent back to the controller service.
|
83
82
|
#
|
84
83
|
# Updates to active breakpoint fields are only allowed if the new value
|
85
84
|
# does not change the breakpoint specification. Updates to the `location`,
|
86
|
-
# `condition` and `
|
85
|
+
# `condition` and `expressions` fields should not alter the breakpoint
|
87
86
|
# semantics. These may only make changes such as canonicalizing a value
|
88
87
|
# or snapping the location to the correct line of code.
|
89
88
|
rpc :UpdateActiveBreakpoint, UpdateActiveBreakpointRequest, UpdateActiveBreakpointResponse
|
@@ -29,9 +29,9 @@ module Google
|
|
29
29
|
# and without modifying its state. An application may include one or
|
30
30
|
# more replicated processes performing the same work.
|
31
31
|
#
|
32
|
-
#
|
33
|
-
# service provides a way to query for available
|
34
|
-
# provide a way to create one. A debuggee is created using the Controller
|
32
|
+
# A debugged application is represented using the Debuggee concept. The
|
33
|
+
# Debugger service provides a way to query for available debuggees, but does
|
34
|
+
# not provide a way to create one. A debuggee is created using the Controller
|
35
35
|
# service, usually by running a debugger agent with the application.
|
36
36
|
#
|
37
37
|
# The Debugger service enables the client to set one or more Breakpoints on a
|
@@ -52,7 +52,7 @@ module Google
|
|
52
52
|
rpc :DeleteBreakpoint, DeleteBreakpointRequest, Google::Protobuf::Empty
|
53
53
|
# Lists all breakpoints for the debuggee.
|
54
54
|
rpc :ListBreakpoints, ListBreakpointsRequest, ListBreakpointsResponse
|
55
|
-
# Lists all the debuggees that the user
|
55
|
+
# Lists all the debuggees that the user has access to.
|
56
56
|
rpc :ListDebuggees, ListDebuggeesRequest, ListDebuggeesResponse
|
57
57
|
end
|
58
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-debugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heng Xiong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: google-cloud-logging
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.10.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.10.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: stackdriver-core
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- lib/google/cloud/debugger/v2/doc/google/devtools/clouddebugger/v2/debugger.rb
|
301
301
|
- lib/google/cloud/debugger/v2/doc/google/devtools/source/v1/source_context.rb
|
302
302
|
- lib/google/cloud/debugger/v2/doc/google/protobuf/timestamp.rb
|
303
|
+
- lib/google/cloud/debugger/v2/doc/overview.rb
|
303
304
|
- lib/google/cloud/debugger/version.rb
|
304
305
|
- lib/google/devtools/clouddebugger/v2/controller_pb.rb
|
305
306
|
- lib/google/devtools/clouddebugger/v2/controller_services_pb.rb
|
@@ -327,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
327
328
|
version: '0'
|
328
329
|
requirements: []
|
329
330
|
rubyforge_project:
|
330
|
-
rubygems_version: 2.
|
331
|
+
rubygems_version: 2.7.2
|
331
332
|
signing_key:
|
332
333
|
specification_version: 4
|
333
334
|
summary: API Client and instrumentation library for Stackdriver Debugger
|