Class: Google::Apis::CloudtraceV2::NetworkEvent

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

An event describing an RPC message sent or received on the network.

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) ⇒ NetworkEvent

Returns a new instance of NetworkEvent



331
332
333
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 331

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

Instance Attribute Details

#compressed_message_sizeFixnum

The number of compressed bytes sent or received. Corresponds to the JSON property compressedMessageSize

Returns:

  • (Fixnum)


306
307
308
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 306

def compressed_message_size
  @compressed_message_size
end

#message_idFixnum

An identifier for the message, which must be unique in this span. Corresponds to the JSON property messageId

Returns:

  • (Fixnum)


311
312
313
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 311

def message_id
  @message_id
end

#timeString

For sent messages, this is the time at which the first bit was sent. For received messages, this is the time at which the last bit was received. Corresponds to the JSON property time

Returns:

  • (String)


318
319
320
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 318

def time
  @time
end

#typeString

Type of NetworkEvent. Indicates whether the RPC message was sent or received. Corresponds to the JSON property type

Returns:

  • (String)


324
325
326
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 324

def type
  @type
end

#uncompressed_message_sizeFixnum

The number of uncompressed bytes sent or received. Corresponds to the JSON property uncompressedMessageSize

Returns:

  • (Fixnum)


329
330
331
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 329

def uncompressed_message_size
  @uncompressed_message_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



336
337
338
339
340
341
342
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 336

def update!(**args)
  @compressed_message_size = args[:compressed_message_size] if args.key?(:compressed_message_size)
  @message_id = args[:message_id] if args.key?(:message_id)
  @time = args[:time] if args.key?(:time)
  @type = args[:type] if args.key?(:type)
  @uncompressed_message_size = args[:uncompressed_message_size] if args.key?(:uncompressed_message_size)
end