Class: DockerEngineRuby::Models::StatsResponse::Network

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/stats_response.rb,
sig/docker_engine_ruby/models/stats_response.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize ⇒ Object



661
# File 'sig/docker_engine_ruby/models/stats_response.rbs', line 661

def initialize: (

Instance Attribute Details

#endpoint_id ⇒ String?

Endpoint ID. Not used on Linux.

This field is Windows-specific and omitted for Linux containers.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


745
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 745

optional :endpoint_id, String, nil?: true

#instance_id ⇒ String?

Instance ID. Not used on Linux.

This field is Windows-specific and omitted for Linux containers.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


753
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 753

optional :instance_id, String, nil?: true

#rx_bytes ⇒ Integer?

Bytes received. Windows and Linux.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


759
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 759

optional :rx_bytes, Integer

#rx_dropped ⇒ Integer?

Incoming packets dropped. Windows and Linux.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


765
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 765

optional :rx_dropped, Integer

#rx_errors ⇒ Integer?

Received errors. Not used on Windows.

This field is Linux-specific and always zero for Windows containers.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


773
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 773

optional :rx_errors, Integer

#rx_packets ⇒ Integer?

Packets received. Windows and Linux.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


779
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 779

optional :rx_packets, Integer

#tx_bytes ⇒ Integer?

Bytes sent. Windows and Linux.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


785
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 785

optional :tx_bytes, Integer

#tx_dropped ⇒ Integer?

Outgoing packets dropped. Windows and Linux.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


791
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 791

optional :tx_dropped, Integer

#tx_errors ⇒ Integer?

Sent errors. Not used on Windows.

This field is Linux-specific and always zero for Windows containers.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


799
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 799

optional :tx_errors, Integer

#tx_packets ⇒ Integer?

Packets sent. Windows and Linux.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


805
# File 'lib/docker_engine_ruby/models/stats_response.rb', line 805

optional :tx_packets, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


674
# File 'sig/docker_engine_ruby/models/stats_response.rbs', line 674

def to_hash: -> {