Class: Google::Apis::DataflowV1b3::CpuTime

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

Overview

Modeled after information exposed by /proc/stat.

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) ⇒ CpuTime

Returns a new instance of CpuTime



4153
4154
4155
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4153

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

Instance Attribute Details

#rateFloat

Average CPU utilization rate (% non-idle cpu / second) since previous sample. Corresponds to the JSON property rate

Returns:

  • (Float)


4151
4152
4153
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4151

def rate
  @rate
end

#timestampString

Timestamp of the measurement. Corresponds to the JSON property timestamp

Returns:

  • (String)


4139
4140
4141
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4139

def timestamp
  @timestamp
end

#total_msString

Total active CPU time across all cores (ie., non-idle) in milliseconds since start-up. Corresponds to the JSON property totalMs

Returns:

  • (String)


4145
4146
4147
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4145

def total_ms
  @total_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4158
4159
4160
4161
4162
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4158

def update!(**args)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
  @total_ms = args[:total_ms] if args.key?(:total_ms)
  @rate = args[:rate] if args.key?(:rate)
end