Class: Google::Apis::CloudprofilerV2::Profile
- Inherits:
-
Object
- Object
- Google::Apis::CloudprofilerV2::Profile
- Defined in:
- generated/google/apis/cloudprofiler_v2/classes.rb,
generated/google/apis/cloudprofiler_v2/representations.rb,
generated/google/apis/cloudprofiler_v2/representations.rb
Overview
Profile resource.
Instance Attribute Summary collapse
-
#deployment ⇒ Google::Apis::CloudprofilerV2::Deployment
Deployment contains the deployment identification information.
-
#duration ⇒ String
Duration of the profiling session.
-
#labels ⇒ Hash<String,String>
Input only.
-
#name ⇒ String
Output only.
-
#profile_bytes ⇒ String
Input only.
-
#profile_type ⇒ String
Type of profile.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Profile
constructor
A new instance of Profile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Profile
Returns a new instance of Profile
145 146 147 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deployment ⇒ Google::Apis::CloudprofilerV2::Deployment
Deployment contains the deployment identification information.
Corresponds to the JSON property deployment
107 108 109 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 107 def deployment @deployment end |
#duration ⇒ String
Duration of the profiling session.
Input (for the offline mode) or output (for the online mode).
The field represents requested profiling duration. It may slightly differ
from the effective profiling duration, which is recorded in the profile
data, in case the profiling can't be stopped immediately (e.g. in case
stopping the profiling is handled asynchronously).
Corresponds to the JSON property duration
117 118 119 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 117 def duration @duration end |
#labels ⇒ Hash<String,String>
Input only. Labels associated to this specific profile. These labels will
get merged with the deployment labels for the final data set. See
documentation on deployment labels for validation rules and limits.
Corresponds to the JSON property labels
124 125 126 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 124 def labels @labels end |
#name ⇒ String
Output only. Opaque, server-assigned, unique ID for this profile.
Corresponds to the JSON property name
129 130 131 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 129 def name @name end |
#profile_bytes ⇒ String
Input only. Profile bytes, as a gzip compressed serialized proto, the
format is https://github.com/google/pprof/blob/master/proto/profile.proto.
Corresponds to the JSON property profileBytes
NOTE: Values are automatically base64 encoded/decoded in the client library.
136 137 138 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 136 def profile_bytes @profile_bytes end |
#profile_type ⇒ String
Type of profile.
For offline mode, this must be specified when creating the profile. For
online mode it is assigned and returned by the server.
Corresponds to the JSON property profileType
143 144 145 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 143 def profile_type @profile_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
150 151 152 153 154 155 156 157 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 150 def update!(**args) @deployment = args[:deployment] if args.key?(:deployment) @duration = args[:duration] if args.key?(:duration) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @profile_bytes = args[:profile_bytes] if args.key?(:profile_bytes) @profile_type = args[:profile_type] if args.key?(:profile_type) end |