Class: Google::Apis::CloudtraceV2::StackFrames

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudtrace_v2/classes.rb,
generated/google/apis/cloudtrace_v2/representations.rb,
generated/google/apis/cloudtrace_v2/representations.rb

Overview

A collection of stack frames, which can be truncated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StackFrames

Returns a new instance of StackFrames



511
512
513
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 511

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dropped_frames_countFixnum

The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped. Corresponds to the JSON property droppedFramesCount

Returns:

  • (Fixnum)


504
505
506
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 504

def dropped_frames_count
  @dropped_frames_count
end

#frameArray<Google::Apis::CloudtraceV2::StackFrame>

Stack frames in this call stack. Corresponds to the JSON property frame



509
510
511
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 509

def frame
  @frame
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 516

def update!(**args)
  @dropped_frames_count = args[:dropped_frames_count] if args.key?(:dropped_frames_count)
  @frame = args[:frame] if args.key?(:frame)
end