Class: Google::Apis::GamesV1::PeerChannelDiagnostics
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::GamesV1::PeerChannelDiagnostics
 
 
- 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
- 
  
    
      #bytes_received  ⇒ Google::Apis::GamesV1::AggregateStats 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This is a JSON template for aggregate stats.
 - 
  
    
      #bytes_sent  ⇒ Google::Apis::GamesV1::AggregateStats 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This is a JSON template for aggregate stats.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Uniquely identifies the type of this resource.
 - 
  
    
      #num_messages_lost  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of messages lost.
 - 
  
    
      #num_messages_received  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of messages received.
 - 
  
    
      #num_messages_sent  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of messages sent.
 - 
  
    
      #num_send_failures  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of send failures.
 - 
  
    
      #roundtrip_latency_millis  ⇒ Google::Apis::GamesV1::AggregateStats 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This is a JSON template for aggregate stats.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PeerChannelDiagnostics 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of PeerChannelDiagnostics.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_received ⇒ Google::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_sent ⇒ Google::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  | 
  
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#peerChannelDiagnostics.
Corresponds to the JSON property kind
      1858 1859 1860  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 1858 def kind @kind end  | 
  
#num_messages_lost ⇒ Fixnum
Number of messages lost.
Corresponds to the JSON property numMessagesLost
      1863 1864 1865  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 1863 def @num_messages_lost end  | 
  
#num_messages_received ⇒ Fixnum
Number of messages received.
Corresponds to the JSON property numMessagesReceived
      1868 1869 1870  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 1868 def @num_messages_received end  | 
  
#num_messages_sent ⇒ Fixnum
Number of messages sent.
Corresponds to the JSON property numMessagesSent
      1873 1874 1875  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 1873 def @num_messages_sent end  | 
  
#num_send_failures ⇒ Fixnum
Number of send failures.
Corresponds to the JSON property numSendFailures
      1878 1879 1880  | 
    
      # File 'generated/google/apis/games_v1/classes.rb', line 1878 def num_send_failures @num_send_failures end  | 
  
#roundtrip_latency_millis ⇒ Google::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  |