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



277
278
279
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 277

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)


252
253
254
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 252

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)


257
258
259
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 257

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)


264
265
266
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 264

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)


270
271
272
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 270

def type
  @type
end

#uncompressed_message_sizeFixnum

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

Returns:

  • (Fixnum)


275
276
277
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 275

def uncompressed_message_size
  @uncompressed_message_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



282
283
284
285
286
287
288
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 282

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