Class: Google::Apis::DataflowV1b3::MemInfo

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

Overview

Information about the memory usage of a worker or a container within a worker.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MemInfo

Returns a new instance of MemInfo.



3464
3465
3466
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3464

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

Instance Attribute Details

#current_limit_bytesFixnum

Instantenous memory limit in bytes. Corresponds to the JSON property currentLimitBytes

Returns:

  • (Fixnum)


3442
3443
3444
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3442

def current_limit_bytes
  @current_limit_bytes
end

#current_oomsFixnum

Number of Out of Memory (OOM) events recorded since the previous measurement. Corresponds to the JSON property currentOoms

Returns:

  • (Fixnum)


3447
3448
3449
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3447

def current_ooms
  @current_ooms
end

#current_rss_bytesFixnum

Instantenous memory (RSS) size in bytes. Corresponds to the JSON property currentRssBytes

Returns:

  • (Fixnum)


3452
3453
3454
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3452

def current_rss_bytes
  @current_rss_bytes
end

#timestampString

Timestamp of the measurement. Corresponds to the JSON property timestamp

Returns:

  • (String)


3457
3458
3459
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3457

def timestamp
  @timestamp
end

#total_gb_msFixnum

Total memory (RSS) usage since start up in GB * ms. Corresponds to the JSON property totalGbMs

Returns:

  • (Fixnum)


3462
3463
3464
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3462

def total_gb_ms
  @total_gb_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3469
3470
3471
3472
3473
3474
3475
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3469

def update!(**args)
  @current_limit_bytes = args[:current_limit_bytes] if args.key?(:current_limit_bytes)
  @current_ooms = args[:current_ooms] if args.key?(:current_ooms)
  @current_rss_bytes = args[:current_rss_bytes] if args.key?(:current_rss_bytes)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
  @total_gb_ms = args[:total_gb_ms] if args.key?(:total_gb_ms)
end