class Google::Apis::GamesV1::PeerChannelDiagnostics

This is a JSON template for peer channel diagnostics.

Attributes

bytes_received[RW]

This is a JSON template for aggregate stats. Corresponds to the JSON property `bytesReceived` @return [Google::Apis::GamesV1::AggregateStats]

bytes_sent[RW]

This is a JSON template for aggregate stats. Corresponds to the JSON property `bytesSent` @return [Google::Apis::GamesV1::AggregateStats]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics. Corresponds to the JSON property `kind` @return [String]

num_messages_lost[RW]

Number of messages lost. Corresponds to the JSON property `numMessagesLost` @return [Fixnum]

num_messages_received[RW]

Number of messages received. Corresponds to the JSON property `numMessagesReceived` @return [Fixnum]

num_messages_sent[RW]

Number of messages sent. Corresponds to the JSON property `numMessagesSent` @return [Fixnum]

num_send_failures[RW]

Number of send failures. Corresponds to the JSON property `numSendFailures` @return [Fixnum]

roundtrip_latency_millis[RW]

This is a JSON template for aggregate stats. Corresponds to the JSON property `roundtripLatencyMillis` @return [Google::Apis::GamesV1::AggregateStats]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 1885
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 1890
def update!(**args)
  @bytes_received = args[:bytes_received] if args.key?(:bytes_received)
  @bytes_sent = args[:bytes_sent] if args.key?(:bytes_sent)
  @kind = args[:kind] if args.key?(:kind)
  @num_messages_lost = args[:num_messages_lost] if args.key?(:num_messages_lost)
  @num_messages_received = args[:num_messages_received] if args.key?(:num_messages_received)
  @num_messages_sent = args[:num_messages_sent] if args.key?(:num_messages_sent)
  @num_send_failures = args[:num_send_failures] if args.key?(:num_send_failures)
  @roundtrip_latency_millis = args[:roundtrip_latency_millis] if args.key?(:roundtrip_latency_millis)
end