Class: Google::Apis::DataflowV1b3::AutoscalingEvent
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataflowV1b3::AutoscalingEvent
 
- 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
A structured message reporting an autoscaling decision made by the Dataflow service.
Instance Attribute Summary collapse
- 
  
    
      #current_num_workers  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The current number of workers the job has. 
- 
  
    
      #description  ⇒ Google::Apis::DataflowV1b3::StructuredMessage 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A rich message format, including a human readable string, a key for identifying the message, and structured data associated with the message for programmatic consumption. 
- 
  
    
      #event_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of autoscaling event to report. 
- 
  
    
      #target_num_workers  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The target number of workers the worker pool wants to resize to use. 
- 
  
    
      #time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time this event was emitted to indicate a new target or current num_workers value. 
- 
  
    
      #worker_pool  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A short and friendly name for the worker pool this event refers to, populated from the value of PoolStageRelation::user_pool_name. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AutoscalingEvent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AutoscalingEvent. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingEvent
Returns a new instance of AutoscalingEvent
| 167 168 169 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 167 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#current_num_workers ⇒ Fixnum
The current number of workers the job has.
Corresponds to the JSON property currentNumWorkers
| 136 137 138 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 136 def current_num_workers @current_num_workers end | 
#description ⇒ Google::Apis::DataflowV1b3::StructuredMessage
A rich message format, including a human readable string, a key for
identifying the message, and structured data associated with the message for
programmatic consumption.
Corresponds to the JSON property description
| 143 144 145 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 143 def description @description end | 
#event_type ⇒ String
The type of autoscaling event to report.
Corresponds to the JSON property eventType
| 148 149 150 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 148 def event_type @event_type end | 
#target_num_workers ⇒ Fixnum
The target number of workers the worker pool wants to resize to use.
Corresponds to the JSON property targetNumWorkers
| 153 154 155 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 153 def target_num_workers @target_num_workers end | 
#time ⇒ String
The time this event was emitted to indicate a new target or current
num_workers value.
Corresponds to the JSON property time
| 159 160 161 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 159 def time @time end | 
#worker_pool ⇒ String
A short and friendly name for the worker pool this event refers to,
populated from the value of PoolStageRelation::user_pool_name.
Corresponds to the JSON property workerPool
| 165 166 167 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 165 def worker_pool @worker_pool end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 172 173 174 175 176 177 178 179 | # File 'generated/google/apis/dataflow_v1b3/classes.rb', line 172 def update!(**args) @current_num_workers = args[:current_num_workers] if args.key?(:current_num_workers) @description = args[:description] if args.key?(:description) @event_type = args[:event_type] if args.key?(:event_type) @target_num_workers = args[:target_num_workers] if args.key?(:target_num_workers) @time = args[:time] if args.key?(:time) @worker_pool = args[:worker_pool] if args.key?(:worker_pool) end |