Class: DockerEngineRuby::Models::StatsResponse::MemoryStats

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

Overview

See Also:

  • DockerEngineRuby::Models::StatsResponse#memory_stats

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



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

def initialize: (

Instance Attribute Details

#commitbytes ⇒ Integer?

Committed bytes.

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

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

optional :commitbytes, Integer, nil?: true

#commitpeakbytes ⇒ Integer?

Peak committed bytes.

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

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

optional :commitpeakbytes, Integer, nil?: true

#failcnt ⇒ Integer?

Number of times memory usage hits limits.

This field is Linux-specific and only supported on cgroups v1. It is omitted when using cgroups v2 and for Windows containers.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

optional :failcnt, Integer, nil?: true

#limit ⇒ Integer?

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

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

optional :limit, Integer, nil?: true

#max_usage ⇒ Integer?

Maximum usage ever recorded.

This field is Linux-specific and only supported on cgroups v1. It is omitted when using cgroups v2 and for Windows containers.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

optional :max_usage, Integer, nil?: true

#privateworkingset ⇒ Integer?

Private working set.

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

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

optional :privateworkingset, Integer, nil?: true

#stats ⇒ Hash{Symbol=>Integer}?

All the stats exported via memory.stat.

The fields in this object differ between cgroups v1 and v2. On cgroups v1, fields such as cache, rss, mapped_file are available. On cgroups v2, fields such as file, anon, inactive_file are available.

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

Parameters:

  • (::Hash[Symbol, Integer])

Returns:

  • (Hash{Symbol=>Integer}, nil)


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

optional :stats, DockerEngineRuby::Internal::Type::HashOf[Integer]

#usage ⇒ Integer?

Current res_counter usage for memory.

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

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

optional :usage, Integer, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {