google-cloud-profiler-v2 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63128c00c436a933344b99b49bd1434acfb984721cb64dd23c3a08da546f6dd4
4
- data.tar.gz: 85216a419411f78397c781cc70523caf216aea40a870906ba3af727e2108d1c9
3
+ metadata.gz: cd0d664c8c3add8697da93640f11c5795054ad4e720a9cd0400ea48c9e85b907
4
+ data.tar.gz: 7a1ece57aa4d05f8c58373ba606505ad39cd9a26ed9c1ffbb70f5b10bde357b8
5
5
  SHA512:
6
- metadata.gz: e75d65eaa441355cb1f48f86fdfbd277123925fe847b81af0ff5dcb13517eef9595da8e05a748879bc2d84e8a92a449de2abf977721b10a815df4ddf4e83c9fe
7
- data.tar.gz: 8185262688d29c8979a81388a773aae86a41ce9fec917f8f31bf2d2827194bf49c98fe60a87944d9f7bf6f179508fc0890b3f1cc56a9a2f1ac65c2a70942512d
6
+ metadata.gz: e5b8de62f4987acbbaa6dd640ef401b986b70a7be32e786ecbe58f2207c5e5728c4ba8c542d3951e68f69b231f4c9336a5ff05ea9d20c833346e057286adc383
7
+ data.tar.gz: 07356d22287664fd0e852cf98e06dc98ba572685746a2841ac81db927436fba4954b945a6eae75105d6cae28c3b9f5ffa2ea3fd21deb0ec905237f68aa3a2b40
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -191,7 +191,7 @@ module Google
191
191
  # @param page_size [::Integer]
192
192
  # The maximum number of items to return.
193
193
  # Default page_size is 1000.
194
- # Max limit is 10000.
194
+ # Max limit is 1000.
195
195
  # @param page_token [::String]
196
196
  # The token to continue pagination and get profiles from a particular page.
197
197
  # When paginating, all other parameters provided to `ListProfiles` must match
@@ -184,7 +184,7 @@ module Google
184
184
  # @param page_size [::Integer]
185
185
  # The maximum number of items to return.
186
186
  # Default page_size is 1000.
187
- # Max limit is 10000.
187
+ # Max limit is 1000.
188
188
  # @param page_token [::String]
189
189
  # The token to continue pagination and get profiles from a particular page.
190
190
  # When paginating, all other parameters provided to `ListProfiles` must match
@@ -30,9 +30,8 @@ module Google
30
30
  # Manage the collection of continuous profiling data provided by profiling
31
31
  # agents running in the cloud or by an offline provider of profiling data.
32
32
  #
33
- # General guidelines:
34
- # * Profiles for a single deployment must be created in ascending time order.
35
- # * Profiles can be created in either online or offline mode, see below.
33
+ # __The APIs listed in this service are intended for use within our profiler
34
+ # agents only.__
36
35
  #
37
36
  class Client
38
37
  # @private
@@ -179,6 +178,11 @@ module Google
179
178
  ##
180
179
  # CreateProfile creates a new profile resource in the online mode.
181
180
  #
181
+ # _Direct use of this API is discouraged, please use a [supported
182
+ # profiler
183
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
184
+ # instead for profile collection._
185
+ #
182
186
  # The server ensures that the new profiles are created at a constant rate per
183
187
  # deployment, so the creation request may hang for some time until the next
184
188
  # profile session is available.
@@ -278,9 +282,14 @@ module Google
278
282
  end
279
283
 
280
284
  ##
281
- # CreateOfflineProfile creates a new profile resource in the offline mode.
282
- # The client provides the profile to create along with the profile bytes, the
283
- # server records it.
285
+ # CreateOfflineProfile creates a new profile resource in the offline
286
+ # mode. The client provides the profile to create along with the profile
287
+ # bytes, the server records it.
288
+ #
289
+ # _Direct use of this API is discouraged, please use a [supported
290
+ # profiler
291
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
292
+ # instead for profile collection._
284
293
  #
285
294
  # @overload create_offline_profile(request, options = nil)
286
295
  # Pass arguments to `create_offline_profile` via a request object, either of type
@@ -372,6 +381,11 @@ module Google
372
381
  # offline mode is currently not supported: the profile content must be
373
382
  # provided at the time of the profile creation.
374
383
  #
384
+ # _Direct use of this API is discouraged, please use a [supported
385
+ # profiler
386
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
387
+ # instead for profile collection._
388
+ #
375
389
  # @overload update_profile(request, options = nil)
376
390
  # Pass arguments to `update_profile` via a request object, either of type
377
391
  # {::Google::Cloud::Profiler::V2::UpdateProfileRequest} or an equivalent Hash.
@@ -32,9 +32,8 @@ module Google
32
32
  # Manage the collection of continuous profiling data provided by profiling
33
33
  # agents running in the cloud or by an offline provider of profiling data.
34
34
  #
35
- # General guidelines:
36
- # * Profiles for a single deployment must be created in ascending time order.
37
- # * Profiles can be created in either online or offline mode, see below.
35
+ # __The APIs listed in this service are intended for use within our profiler
36
+ # agents only.__
38
37
  #
39
38
  class Client
40
39
  # @private
@@ -172,6 +171,11 @@ module Google
172
171
  ##
173
172
  # CreateProfile creates a new profile resource in the online mode.
174
173
  #
174
+ # _Direct use of this API is discouraged, please use a [supported
175
+ # profiler
176
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
177
+ # instead for profile collection._
178
+ #
175
179
  # The server ensures that the new profiles are created at a constant rate per
176
180
  # deployment, so the creation request may hang for some time until the next
177
181
  # profile session is available.
@@ -264,9 +268,14 @@ module Google
264
268
  end
265
269
 
266
270
  ##
267
- # CreateOfflineProfile creates a new profile resource in the offline mode.
268
- # The client provides the profile to create along with the profile bytes, the
269
- # server records it.
271
+ # CreateOfflineProfile creates a new profile resource in the offline
272
+ # mode. The client provides the profile to create along with the profile
273
+ # bytes, the server records it.
274
+ #
275
+ # _Direct use of this API is discouraged, please use a [supported
276
+ # profiler
277
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
278
+ # instead for profile collection._
270
279
  #
271
280
  # @overload create_offline_profile(request, options = nil)
272
281
  # Pass arguments to `create_offline_profile` via a request object, either of type
@@ -351,6 +360,11 @@ module Google
351
360
  # offline mode is currently not supported: the profile content must be
352
361
  # provided at the time of the profile creation.
353
362
  #
363
+ # _Direct use of this API is discouraged, please use a [supported
364
+ # profiler
365
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
366
+ # instead for profile collection._
367
+ #
354
368
  # @overload update_profile(request, options = nil)
355
369
  # Pass arguments to `update_profile` via a request object, either of type
356
370
  # {::Google::Cloud::Profiler::V2::UpdateProfileRequest} or an equivalent Hash.
@@ -34,9 +34,8 @@ module Google
34
34
  # Manage the collection of continuous profiling data provided by profiling
35
35
  # agents running in the cloud or by an offline provider of profiling data.
36
36
  #
37
- # General guidelines:
38
- # * Profiles for a single deployment must be created in ascending time order.
39
- # * Profiles can be created in either online or offline mode, see below.
37
+ # __The APIs listed in this service are intended for use within our profiler
38
+ # agents only.__
40
39
  #
41
40
  # To load this service and instantiate a REST client:
42
41
  #
@@ -35,9 +35,8 @@ module Google
35
35
  # Manage the collection of continuous profiling data provided by profiling
36
36
  # agents running in the cloud or by an offline provider of profiling data.
37
37
  #
38
- # General guidelines:
39
- # * Profiles for a single deployment must be created in ascending time order.
40
- # * Profiles can be created in either online or offline mode, see below.
38
+ # __The APIs listed in this service are intended for use within our profiler
39
+ # agents only.__
41
40
  #
42
41
  # @example Load this service and instantiate a gRPC client
43
42
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Profiler
23
23
  module V2
24
- VERSION = "0.9.1"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -10,15 +10,16 @@ require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
11
  require 'google/protobuf/duration_pb'
12
12
  require 'google/protobuf/field_mask_pb'
13
+ require 'google/protobuf/timestamp_pb'
13
14
 
14
15
 
15
- descriptor_data = "\n/google/devtools/cloudprofiler/v2/profiler.proto\x12 google.devtools.cloudprofiler.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\"\xdf\x01\n\x14\x43reateProfileRequest\x12@\n\x06parent\x18\x04 \x01(\tB0\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12@\n\ndeployment\x18\x01 \x01(\x0b\x32,.google.devtools.cloudprofiler.v2.Deployment\x12\x43\n\x0cprofile_type\x18\x02 \x03(\x0e\x32-.google.devtools.cloudprofiler.v2.ProfileType\"\x9b\x01\n\x1b\x43reateOfflineProfileRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12:\n\x07profile\x18\x02 \x01(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\"\x83\x01\n\x14UpdateProfileRequest\x12:\n\x07profile\x18\x01 \x01(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb9\x03\n\x07Profile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\x0cprofile_type\x18\x02 \x01(\x0e\x32-.google.devtools.cloudprofiler.v2.ProfileType\x12@\n\ndeployment\x18\x03 \x01(\x0b\x32,.google.devtools.cloudprofiler.v2.Deployment\x12+\n\x08\x64uration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\rprofile_bytes\x18\x05 \x01(\x0c\x42\x03\xe0\x41\x04\x12J\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.devtools.cloudprofiler.v2.Profile.LabelsEntryB\x03\xe0\x41\x04\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:P\xea\x41M\n$cloudprofiler.googleapis.com/Profile\x12%projects/{project}/profiles/{profile}\"\xa9\x01\n\nDeployment\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\x12H\n\x06labels\x18\x03 \x03(\x0b\x32\x38.google.devtools.cloudprofiler.v2.Deployment.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x81\x01\n\x13ListProfilesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x86\x01\n\x14ListProfilesResponse\x12;\n\x08profiles\x18\x01 \x03(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10skipped_profiles\x18\x03 \x01(\x05*\x84\x01\n\x0bProfileType\x12\x1c\n\x18PROFILE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x08\n\x04WALL\x10\x02\x12\x08\n\x04HEAP\x10\x03\x12\x0b\n\x07THREADS\x10\x04\x12\x0e\n\nCONTENTION\x10\x05\x12\r\n\tPEAK_HEAP\x10\x06\x12\x0e\n\nHEAP_ALLOC\x10\x07\x32\xfe\x05\n\x0fProfilerService\x12\x9f\x01\n\rCreateProfile\x12\x36.google.devtools.cloudprofiler.v2.CreateProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"+\x82\xd3\xe4\x93\x02%\" /v2/{parent=projects/*}/profiles:\x01*\x12\xd2\x01\n\x14\x43reateOfflineProfile\x12=.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"P\x82\xd3\xe4\x93\x02\x39\"./v2/{parent=projects/*}/profiles:createOffline:\x07profile\xda\x41\x0eparent,profile\x12\xc3\x01\n\rUpdateProfile\x12\x36.google.devtools.cloudprofiler.v2.UpdateProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"O\x82\xd3\xe4\x93\x02\x33\x32(/v2/{profile.name=projects/*/profiles/*}:\x07profile\xda\x41\x13profile,update_mask\x1a\xad\x01\xca\x41\x1c\x63loudprofiler.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.write2\xe9\x02\n\rExportService\x12\xa7\x01\n\x0cListProfiles\x12\x35.google.devtools.cloudprofiler.v2.ListProfilesRequest\x1a\x36.google.devtools.cloudprofiler.v2.ListProfilesResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /v2/{parent=projects/*}/profiles\x1a\xad\x01\xca\x41\x1c\x63loudprofiler.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.writeB\xd4\x01\n$com.google.devtools.cloudprofiler.v2B\rProfilerProtoP\x01ZGcloud.google.com/go/cloudprofiler/apiv2/cloudprofilerpb;cloudprofilerpb\xaa\x02\x18Google.Cloud.Profiler.V2\xca\x02\x18Google\\Cloud\\Profiler\\V2\xea\x02\x1bGoogle::Cloud::Profiler::V2b\x06proto3"
16
+ descriptor_data = "\n/google/devtools/cloudprofiler/v2/profiler.proto\x12 google.devtools.cloudprofiler.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdf\x01\n\x14\x43reateProfileRequest\x12@\n\x06parent\x18\x04 \x01(\tB0\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12@\n\ndeployment\x18\x01 \x01(\x0b\x32,.google.devtools.cloudprofiler.v2.Deployment\x12\x43\n\x0cprofile_type\x18\x02 \x03(\x0e\x32-.google.devtools.cloudprofiler.v2.ProfileType\"\x9b\x01\n\x1b\x43reateOfflineProfileRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12:\n\x07profile\x18\x02 \x01(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\"\x83\x01\n\x14UpdateProfileRequest\x12:\n\x07profile\x18\x01 \x01(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xee\x03\n\x07Profile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\x0cprofile_type\x18\x02 \x01(\x0e\x32-.google.devtools.cloudprofiler.v2.ProfileType\x12@\n\ndeployment\x18\x03 \x01(\x0b\x32,.google.devtools.cloudprofiler.v2.Deployment\x12+\n\x08\x64uration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\rprofile_bytes\x18\x05 \x01(\x0c\x42\x03\xe0\x41\x04\x12J\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.devtools.cloudprofiler.v2.Profile.LabelsEntryB\x03\xe0\x41\x04\x12\x33\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:P\xea\x41M\n$cloudprofiler.googleapis.com/Profile\x12%projects/{project}/profiles/{profile}\"\xa9\x01\n\nDeployment\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\x12H\n\x06labels\x18\x03 \x03(\x0b\x32\x38.google.devtools.cloudprofiler.v2.Deployment.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x81\x01\n\x13ListProfilesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x86\x01\n\x14ListProfilesResponse\x12;\n\x08profiles\x18\x01 \x03(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10skipped_profiles\x18\x03 \x01(\x05*\x84\x01\n\x0bProfileType\x12\x1c\n\x18PROFILE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x08\n\x04WALL\x10\x02\x12\x08\n\x04HEAP\x10\x03\x12\x0b\n\x07THREADS\x10\x04\x12\x0e\n\nCONTENTION\x10\x05\x12\r\n\tPEAK_HEAP\x10\x06\x12\x0e\n\nHEAP_ALLOC\x10\x07\x32\xfe\x05\n\x0fProfilerService\x12\x9f\x01\n\rCreateProfile\x12\x36.google.devtools.cloudprofiler.v2.CreateProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"+\x82\xd3\xe4\x93\x02%\" /v2/{parent=projects/*}/profiles:\x01*\x12\xd2\x01\n\x14\x43reateOfflineProfile\x12=.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"P\xda\x41\x0eparent,profile\x82\xd3\xe4\x93\x02\x39\"./v2/{parent=projects/*}/profiles:createOffline:\x07profile\x12\xc3\x01\n\rUpdateProfile\x12\x36.google.devtools.cloudprofiler.v2.UpdateProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"O\xda\x41\x13profile,update_mask\x82\xd3\xe4\x93\x02\x33\x32(/v2/{profile.name=projects/*/profiles/*}:\x07profile\x1a\xad\x01\xca\x41\x1c\x63loudprofiler.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.write2\xf2\x02\n\rExportService\x12\xb0\x01\n\x0cListProfiles\x12\x35.google.devtools.cloudprofiler.v2.ListProfilesRequest\x1a\x36.google.devtools.cloudprofiler.v2.ListProfilesResponse\"1\xda\x41\x06parent\x82\xd3\xe4\x93\x02\"\x12 /v2/{parent=projects/*}/profiles\x1a\xad\x01\xca\x41\x1c\x63loudprofiler.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.writeB\xd4\x01\n$com.google.devtools.cloudprofiler.v2B\rProfilerProtoP\x01ZGcloud.google.com/go/cloudprofiler/apiv2/cloudprofilerpb;cloudprofilerpb\xaa\x02\x18Google.Cloud.Profiler.V2\xca\x02\x18Google\\Cloud\\Profiler\\V2\xea\x02\x1bGoogle::Cloud::Profiler::V2b\x06proto3"
16
17
 
17
18
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
19
 
19
20
  begin
20
21
  pool.add_serialized_file(descriptor_data)
21
- rescue TypeError => e
22
+ rescue TypeError
22
23
  # Compatibility code: will be removed in the next major version.
23
24
  require 'google/protobuf/descriptor_pb'
24
25
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -29,6 +30,7 @@ rescue TypeError => e
29
30
  imports = [
30
31
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
31
32
  ["google.protobuf.Duration", "google/protobuf/duration.proto"],
33
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
32
34
  ]
33
35
  imports.each do |type_name, expected_filename|
34
36
  import_file = pool.lookup(type_name).file_descriptor
@@ -27,9 +27,8 @@ module Google
27
27
  # Manage the collection of continuous profiling data provided by profiling
28
28
  # agents running in the cloud or by an offline provider of profiling data.
29
29
  #
30
- # General guidelines:
31
- # * Profiles for a single deployment must be created in ascending time order.
32
- # * Profiles can be created in either online or offline mode, see below.
30
+ # __The APIs listed in this service are intended for use within our profiler
31
+ # agents only.__
33
32
  class Service
34
33
 
35
34
  include ::GRPC::GenericService
@@ -40,6 +39,11 @@ module Google
40
39
 
41
40
  # CreateProfile creates a new profile resource in the online mode.
42
41
  #
42
+ # _Direct use of this API is discouraged, please use a [supported
43
+ # profiler
44
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
45
+ # instead for profile collection._
46
+ #
43
47
  # The server ensures that the new profiles are created at a constant rate per
44
48
  # deployment, so the creation request may hang for some time until the next
45
49
  # profile session is available.
@@ -53,14 +57,24 @@ module Google
53
57
  # "google.rpc.retryinfo-bin".
54
58
  #
55
59
  rpc :CreateProfile, ::Google::Cloud::Profiler::V2::CreateProfileRequest, ::Google::Cloud::Profiler::V2::Profile
56
- # CreateOfflineProfile creates a new profile resource in the offline mode.
57
- # The client provides the profile to create along with the profile bytes, the
58
- # server records it.
60
+ # CreateOfflineProfile creates a new profile resource in the offline
61
+ # mode. The client provides the profile to create along with the profile
62
+ # bytes, the server records it.
63
+ #
64
+ # _Direct use of this API is discouraged, please use a [supported
65
+ # profiler
66
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
67
+ # instead for profile collection._
59
68
  rpc :CreateOfflineProfile, ::Google::Cloud::Profiler::V2::CreateOfflineProfileRequest, ::Google::Cloud::Profiler::V2::Profile
60
69
  # UpdateProfile updates the profile bytes and labels on the profile resource
61
70
  # created in the online mode. Updating the bytes for profiles created in the
62
71
  # offline mode is currently not supported: the profile content must be
63
72
  # provided at the time of the profile creation.
73
+ #
74
+ # _Direct use of this API is discouraged, please use a [supported
75
+ # profiler
76
+ # agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
77
+ # instead for profile collection._
64
78
  rpc :UpdateProfile, ::Google::Cloud::Profiler::V2::UpdateProfileRequest, ::Google::Cloud::Profiler::V2::Profile
65
79
  end
66
80
 
@@ -96,6 +96,10 @@ module Google
96
96
  # Input only. Labels associated to this specific profile. These labels will
97
97
  # get merged with the deployment labels for the final data set. See
98
98
  # documentation on deployment labels for validation rules and limits.
99
+ # @!attribute [r] start_time
100
+ # @return [::Google::Protobuf::Timestamp]
101
+ # Output only. Start time for the profile.
102
+ # This output is only present in response from the ListProfiles method.
99
103
  class Profile
100
104
  include ::Google::Protobuf::MessageExts
101
105
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -162,7 +166,7 @@ module Google
162
166
  # @return [::Integer]
163
167
  # The maximum number of items to return.
164
168
  # Default page_size is 1000.
165
- # Max limit is 10000.
169
+ # Max limit is 1000.
166
170
  # @!attribute [rw] page_token
167
171
  # @return [::String]
168
172
  # The token to continue pagination and get profiles from a particular page.
@@ -0,0 +1,127 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # A Timestamp represents a point in time independent of any time zone or local
23
+ # calendar, encoded as a count of seconds and fractions of seconds at
24
+ # nanosecond resolution. The count is relative to an epoch at UTC midnight on
25
+ # January 1, 1970, in the proleptic Gregorian calendar which extends the
26
+ # Gregorian calendar backwards to year one.
27
+ #
28
+ # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
29
+ # second table is needed for interpretation, using a [24-hour linear
30
+ # smear](https://developers.google.com/time/smear).
31
+ #
32
+ # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
33
+ # restricting to that range, we ensure that we can convert to and from [RFC
34
+ # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
35
+ #
36
+ # # Examples
37
+ #
38
+ # Example 1: Compute Timestamp from POSIX `time()`.
39
+ #
40
+ # Timestamp timestamp;
41
+ # timestamp.set_seconds(time(NULL));
42
+ # timestamp.set_nanos(0);
43
+ #
44
+ # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
45
+ #
46
+ # struct timeval tv;
47
+ # gettimeofday(&tv, NULL);
48
+ #
49
+ # Timestamp timestamp;
50
+ # timestamp.set_seconds(tv.tv_sec);
51
+ # timestamp.set_nanos(tv.tv_usec * 1000);
52
+ #
53
+ # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
54
+ #
55
+ # FILETIME ft;
56
+ # GetSystemTimeAsFileTime(&ft);
57
+ # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
58
+ #
59
+ # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
60
+ # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
61
+ # Timestamp timestamp;
62
+ # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
63
+ # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
64
+ #
65
+ # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
66
+ #
67
+ # long millis = System.currentTimeMillis();
68
+ #
69
+ # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
+ # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
+ #
72
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
73
+ #
74
+ # Instant now = Instant.now();
75
+ #
76
+ # Timestamp timestamp =
77
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
78
+ # .setNanos(now.getNano()).build();
79
+ #
80
+ # Example 6: Compute Timestamp from current time in Python.
81
+ #
82
+ # timestamp = Timestamp()
83
+ # timestamp.GetCurrentTime()
84
+ #
85
+ # # JSON Mapping
86
+ #
87
+ # In JSON format, the Timestamp type is encoded as a string in the
88
+ # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
89
+ # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
90
+ # where \\{year} is always expressed using four digits while \\{month}, \\{day},
91
+ # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
92
+ # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
93
+ # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
94
+ # is required. A proto3 JSON serializer should always use UTC (as indicated by
95
+ # "Z") when printing the Timestamp type and a proto3 JSON parser should be
96
+ # able to accept both UTC and other timezones (as indicated by an offset).
97
+ #
98
+ # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
99
+ # 01:30 UTC on January 15, 2017.
100
+ #
101
+ # In JavaScript, one can convert a Date object to this format using the
102
+ # standard
103
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
104
+ # method. In Python, a standard `datetime.datetime` object can be converted
105
+ # to this format using
106
+ # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
107
+ # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
108
+ # the Joda Time's [`ISODateTimeFormat.dateTime()`](
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
110
+ # ) to obtain a formatter capable of generating timestamps in this format.
111
+ # @!attribute [rw] seconds
112
+ # @return [::Integer]
113
+ # Represents seconds of UTC time since Unix epoch
114
+ # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
+ # 9999-12-31T23:59:59Z inclusive.
116
+ # @!attribute [rw] nanos
117
+ # @return [::Integer]
118
+ # Non-negative fractions of a second at nanosecond resolution. Negative
119
+ # second values with fractions must still have non-negative nanos values
120
+ # that count forward in time. Must be from 0 to 999,999,999
121
+ # inclusive.
122
+ class Timestamp
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+ end
127
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-profiler-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-12 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,118 +44,6 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
- - !ruby/object:Gem::Dependency
48
- name: google-style
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 1.26.3
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 1.26.3
61
- - !ruby/object:Gem::Dependency
62
- name: minitest
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '5.16'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '5.16'
75
- - !ruby/object:Gem::Dependency
76
- name: minitest-focus
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.1'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.1'
89
- - !ruby/object:Gem::Dependency
90
- name: minitest-rg
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '5.2'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '5.2'
103
- - !ruby/object:Gem::Dependency
104
- name: rake
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '13.0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '13.0'
117
- - !ruby/object:Gem::Dependency
118
- name: redcarpet
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '3.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '3.0'
131
- - !ruby/object:Gem::Dependency
132
- name: simplecov
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '0.18'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '0.18'
145
- - !ruby/object:Gem::Dependency
146
- name: yard
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.9'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.9'
159
47
  description: Cloud Profiler is a statistical, low-overhead profiler that continuously
160
48
  gathers CPU usage and memory-allocation information from your production applications.
161
49
  It attributes that information to the application's source code, helping you identify
@@ -200,6 +88,7 @@ files:
200
88
  - proto_docs/google/devtools/cloudprofiler/v2/profiler.rb
201
89
  - proto_docs/google/protobuf/duration.rb
202
90
  - proto_docs/google/protobuf/field_mask.rb
91
+ - proto_docs/google/protobuf/timestamp.rb
203
92
  homepage: https://github.com/googleapis/google-cloud-ruby
204
93
  licenses:
205
94
  - Apache-2.0
@@ -212,14 +101,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
101
  requirements:
213
102
  - - ">="
214
103
  - !ruby/object:Gem::Version
215
- version: '2.6'
104
+ version: '2.7'
216
105
  required_rubygems_version: !ruby/object:Gem::Requirement
217
106
  requirements:
218
107
  - - ">="
219
108
  - !ruby/object:Gem::Version
220
109
  version: '0'
221
110
  requirements: []
222
- rubygems_version: 3.5.3
111
+ rubygems_version: 3.5.6
223
112
  signing_key:
224
113
  specification_version: 4
225
114
  summary: Manages continuous profiling information.