A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.
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.
getCurrentNumWorkers
The current number of workers the job has.
Returns
Type
Description
int|string
setCurrentNumWorkers
The current number of workers the job has.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getTargetNumWorkers
The target number of workers the worker pool wants to resize to use.
Returns
Type
Description
int|string
setTargetNumWorkers
The target number of workers the worker pool wants to resize to use.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getEventType
The type of autoscaling event to report.
Returns
Type
Description
int
setEventType
The type of autoscaling event to report.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDescription
A message describing why the system decided to adjust the current
number of workers, why it failed, or why the system decided to
not make any changes to the number of workers.
A message describing why the system decided to adjust the current
number of workers, why it failed, or why the system decided to
not make any changes to the number of workers.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dataflow V1beta3 Client - Class AutoscalingEvent (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-dataflow/latest/V1beta3.AutoscalingEvent)\n- [0.8.1](/php/docs/reference/cloud-dataflow/0.8.1/V1beta3.AutoscalingEvent)\n- [0.7.1](/php/docs/reference/cloud-dataflow/0.7.1/V1beta3.AutoscalingEvent)\n- [0.6.6](/php/docs/reference/cloud-dataflow/0.6.6/V1beta3.AutoscalingEvent)\n- [0.5.1](/php/docs/reference/cloud-dataflow/0.5.1/V1beta3.AutoscalingEvent)\n- [0.4.1](/php/docs/reference/cloud-dataflow/0.4.1/V1beta3.AutoscalingEvent)\n- [0.3.10](/php/docs/reference/cloud-dataflow/0.3.10/V1beta3.AutoscalingEvent) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class AutoscalingEvent.\n\nA structured message reporting an autoscaling decision made by the Dataflow\nservice.\n\nGenerated from protobuf message `google.dataflow.v1beta3.AutoscalingEvent`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataflow \\\\ V1beta3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCurrentNumWorkers\n\nThe current number of workers the job has.\n\n### setCurrentNumWorkers\n\nThe current number of workers the job has.\n\n### getTargetNumWorkers\n\nThe target number of workers the worker pool wants to resize to use.\n\n### setTargetNumWorkers\n\nThe target number of workers the worker pool wants to resize to use.\n\n### getEventType\n\nThe type of autoscaling event to report.\n\n### setEventType\n\nThe type of autoscaling event to report.\n\n### getDescription\n\nA message describing why the system decided to adjust the current\nnumber of workers, why it failed, or why the system decided to\nnot make any changes to the number of workers.\n\n### hasDescription\n\n### clearDescription\n\n### setDescription\n\nA message describing why the system decided to adjust the current\nnumber of workers, why it failed, or why the system decided to\nnot make any changes to the number of workers.\n\n### getTime\n\nThe time this event was emitted to indicate a new target or current\nnum_workers value.\n\n### hasTime\n\n### clearTime\n\n### setTime\n\nThe time this event was emitted to indicate a new target or current\nnum_workers value.\n\n### getWorkerPool\n\nA short and friendly name for the worker pool this event refers to.\n\n### setWorkerPool\n\nA short and friendly name for the worker pool this event refers to."]]