Class: Google::Apis::ComputeAlpha::PacketIntervals

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

Overview

Next free: 7

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PacketIntervals

Returns a new instance of PacketIntervals.



30527
30528
30529
# File 'lib/google/apis/compute_alpha/classes.rb', line 30527

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

Instance Attribute Details

#avg_msFixnum

Average observed inter-packet interval in milliseconds. Corresponds to the JSON property avgMs

Returns:

  • (Fixnum)


30500
30501
30502
# File 'lib/google/apis/compute_alpha/classes.rb', line 30500

def avg_ms
  @avg_ms
end

#durationString

From how long ago in the past these intervals were observed. Corresponds to the JSON property duration

Returns:

  • (String)


30505
30506
30507
# File 'lib/google/apis/compute_alpha/classes.rb', line 30505

def duration
  @duration
end

#max_msFixnum

Maximum observed inter-packet interval in milliseconds. Corresponds to the JSON property maxMs

Returns:

  • (Fixnum)


30510
30511
30512
# File 'lib/google/apis/compute_alpha/classes.rb', line 30510

def max_ms
  @max_ms
end

#min_msFixnum

Minimum observed inter-packet interval in milliseconds. Corresponds to the JSON property minMs

Returns:

  • (Fixnum)


30515
30516
30517
# File 'lib/google/apis/compute_alpha/classes.rb', line 30515

def min_ms
  @min_ms
end

#num_intervalsFixnum

Number of inter-packet intervals from which these statistics were derived. Corresponds to the JSON property numIntervals

Returns:

  • (Fixnum)


30520
30521
30522
# File 'lib/google/apis/compute_alpha/classes.rb', line 30520

def num_intervals
  @num_intervals
end

#typeString

The type of packets for which inter-packet intervals were computed. Corresponds to the JSON property type

Returns:

  • (String)


30525
30526
30527
# File 'lib/google/apis/compute_alpha/classes.rb', line 30525

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30532
30533
30534
30535
30536
30537
30538
30539
# File 'lib/google/apis/compute_alpha/classes.rb', line 30532

def update!(**args)
  @avg_ms = args[:avg_ms] if args.key?(:avg_ms)
  @duration = args[:duration] if args.key?(:duration)
  @max_ms = args[:max_ms] if args.key?(:max_ms)
  @min_ms = args[:min_ms] if args.key?(:min_ms)
  @num_intervals = args[:num_intervals] if args.key?(:num_intervals)
  @type = args[:type] if args.key?(:type)
end