Class: Google::Apis::GamesV1::PeerChannelDiagnostics

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

Overview

This is a JSON template for peer channel diagnostics.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PeerChannelDiagnostics

Returns a new instance of PeerChannelDiagnostics.


1885
1886
1887
# File 'generated/google/apis/games_v1/classes.rb', line 1885

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

Instance Attribute Details

#bytes_receivedGoogle::Apis::GamesV1::AggregateStats

This is a JSON template for aggregate stats. Corresponds to the JSON property bytesReceived


1847
1848
1849
# File 'generated/google/apis/games_v1/classes.rb', line 1847

def bytes_received
  @bytes_received
end

#bytes_sentGoogle::Apis::GamesV1::AggregateStats

This is a JSON template for aggregate stats. Corresponds to the JSON property bytesSent


1852
1853
1854
# File 'generated/google/apis/games_v1/classes.rb', line 1852

def bytes_sent
  @bytes_sent
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics. Corresponds to the JSON property kind

Returns:

  • (String)

1858
1859
1860
# File 'generated/google/apis/games_v1/classes.rb', line 1858

def kind
  @kind
end

#num_messages_lostFixnum

Number of messages lost. Corresponds to the JSON property numMessagesLost

Returns:

  • (Fixnum)

1863
1864
1865
# File 'generated/google/apis/games_v1/classes.rb', line 1863

def num_messages_lost
  @num_messages_lost
end

#num_messages_receivedFixnum

Number of messages received. Corresponds to the JSON property numMessagesReceived

Returns:

  • (Fixnum)

1868
1869
1870
# File 'generated/google/apis/games_v1/classes.rb', line 1868

def num_messages_received
  @num_messages_received
end

#num_messages_sentFixnum

Number of messages sent. Corresponds to the JSON property numMessagesSent

Returns:

  • (Fixnum)

1873
1874
1875
# File 'generated/google/apis/games_v1/classes.rb', line 1873

def num_messages_sent
  @num_messages_sent
end

#num_send_failuresFixnum

Number of send failures. Corresponds to the JSON property numSendFailures

Returns:

  • (Fixnum)

1878
1879
1880
# File 'generated/google/apis/games_v1/classes.rb', line 1878

def num_send_failures
  @num_send_failures
end

#roundtrip_latency_millisGoogle::Apis::GamesV1::AggregateStats

This is a JSON template for aggregate stats. Corresponds to the JSON property roundtripLatencyMillis


1883
1884
1885
# File 'generated/google/apis/games_v1/classes.rb', line 1883

def roundtrip_latency_millis
  @roundtrip_latency_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
# 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