class Google::Apis::DataflowV1b3::AutoscalingEvent

A structured message reporting an autoscaling decision made by the Dataflow service.

Attributes

current_num_workers[RW]

The current number of workers the job has. Corresponds to the JSON property `currentNumWorkers` @return [Fixnum]

description[RW]

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` @return [Google::Apis::DataflowV1b3::StructuredMessage]

event_type[RW]

The type of autoscaling event to report. Corresponds to the JSON property `eventType` @return [String]

target_num_workers[RW]

The target number of workers the worker pool wants to resize to use. Corresponds to the JSON property `targetNumWorkers` @return [Fixnum]

time[RW]

The time this event was emitted to indicate a new target or current num_workers value. Corresponds to the JSON property `time` @return [String]

worker_pool[RW]

A short and friendly name for the worker pool this event refers to. Corresponds to the JSON property `workerPool` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataflow_v1b3/classes.rb, line 173
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataflow_v1b3/classes.rb, line 178
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