Class: Google::Cloud::Profiler::V2::Profile

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudprofiler/v2/profiler.rb

Overview

Profile resource.

Defined Under Namespace

Classes: LabelsEntry

Instance Attribute Summary collapse

Instance Attribute Details

#deployment::Google::Cloud::Profiler::V2::Deployment

Returns Deployment this profile corresponds to.

Returns:



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/devtools/cloudprofiler/v2/profiler.rb', line 99

class Profile
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#duration::Google::Protobuf::Duration

Returns 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).

Returns:

  • (::Google::Protobuf::Duration)

    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).



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/devtools/cloudprofiler/v2/profiler.rb', line 99

class Profile
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#labels::Google::Protobuf::Map{::String => ::String}

Returns 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.

Returns:

  • (::Google::Protobuf::Map{::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.



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/devtools/cloudprofiler/v2/profiler.rb', line 99

class Profile
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#name::String (readonly)

Returns Output only. Opaque, server-assigned, unique ID for this profile.

Returns:

  • (::String)

    Output only. Opaque, server-assigned, unique ID for this profile.



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/devtools/cloudprofiler/v2/profiler.rb', line 99

class Profile
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#profile_bytes::String

Returns Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.

Returns:



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/devtools/cloudprofiler/v2/profiler.rb', line 99

class Profile
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#profile_type::Google::Cloud::Profiler::V2::ProfileType

Returns 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.

Returns:



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/devtools/cloudprofiler/v2/profiler.rb', line 99

class Profile
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end