Class: Google::Apis::DataflowV1b3::CpuTime
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DataflowV1b3::CpuTime
 
 
- 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
- 
  
    
      #rate  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Average CPU utilization rate (% non-idle cpu / second) since previous sample.
 - 
  
    
      #timestamp  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Timestamp of the measurement.
 - 
  
    
      #total_ms  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Total active CPU time across all cores (ie., non-idle) in milliseconds since start-up.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CpuTime 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CpuTime.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CpuTime
Returns a new instance of CpuTime
      296 297 298  | 
    
      # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 296 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#rate ⇒ Float
Average CPU utilization rate (% non-idle cpu / second) since previous
sample.
Corresponds to the JSON property rate
      283 284 285  | 
    
      # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 283 def rate @rate end  | 
  
#timestamp ⇒ String
Timestamp of the measurement.
Corresponds to the JSON property timestamp
      288 289 290  | 
    
      # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 288 def @timestamp end  | 
  
#total_ms ⇒ Fixnum
Total active CPU time across all cores (ie., non-idle) in milliseconds
since start-up.
Corresponds to the JSON property totalMs
      294 295 296  | 
    
      # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 294 def total_ms @total_ms end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      301 302 303 304 305  | 
    
      # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 301 def update!(**args) @rate = args[:rate] if args.key?(:rate) @timestamp = args[:timestamp] if args.key?(:timestamp) @total_ms = args[:total_ms] if args.key?(:total_ms) end  |