public sealed class AutoscalingEvent : IMessage<AutoscalingEvent>, IEquatable<AutoscalingEvent>, IDeepCloneable<AutoscalingEvent>, IBufferMessage, IMessage
Reference documentation and code samples for the Dataflow v1beta3 API class AutoscalingEvent.
A structured message reporting an autoscaling decision made by the Dataflow
service.
public StructuredMessage Description { get; set; }
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAutoscalingEvent\u003c/code\u003e class in the Dataflow v1beta3 API provides a structured message detailing autoscaling decisions made by the Dataflow service.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, for message handling and object comparison.\u003c/p\u003e\n"],["\u003cp\u003eKey properties within \u003ccode\u003eAutoscalingEvent\u003c/code\u003e include \u003ccode\u003eCurrentNumWorkers\u003c/code\u003e, \u003ccode\u003eTargetNumWorkers\u003c/code\u003e, \u003ccode\u003eEventType\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eTime\u003c/code\u003e, and \u003ccode\u003eWorkerPool\u003c/code\u003e, providing information about worker counts, event type, and the associated worker pool.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for creating an \u003ccode\u003eAutoscalingEvent\u003c/code\u003e object, the first is empty and the second takes another \u003ccode\u003eAutoscalingEvent\u003c/code\u003e instance as an argument.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eAutoscalingEvent\u003c/code\u003e class is 2.0.0-beta07, with older versions 2.0.0-beta06 and 1.0.0-beta03 also documented.\u003c/p\u003e\n"]]],[],null,["# Dataflow v1beta3 API - Class AutoscalingEvent (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.AutoscalingEvent)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/2.0.0-beta06/Google.Cloud.Dataflow.V1Beta3.AutoscalingEvent)\n- [1.0.0-beta03](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/1.0.0-beta03/Google.Cloud.Dataflow.V1Beta3.AutoscalingEvent) \n\n public sealed class AutoscalingEvent : IMessage\u003cAutoscalingEvent\u003e, IEquatable\u003cAutoscalingEvent\u003e, IDeepCloneable\u003cAutoscalingEvent\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Dataflow v1beta3 API class AutoscalingEvent.\n\nA structured message reporting an autoscaling decision made by the Dataflow\nservice. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AutoscalingEvent \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutoscalingEvent](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.AutoscalingEvent), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoscalingEvent](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.AutoscalingEvent), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutoscalingEvent](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.AutoscalingEvent), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dataflow.V1Beta3](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataflow.V1Beta3.dll\n\nConstructors\n------------\n\n### AutoscalingEvent()\n\n public AutoscalingEvent()\n\n### AutoscalingEvent(AutoscalingEvent)\n\n public AutoscalingEvent(AutoscalingEvent other)\n\nProperties\n----------\n\n### CurrentNumWorkers\n\n public long CurrentNumWorkers { get; set; }\n\nThe current number of workers the job has.\n\n### Description\n\n public StructuredMessage Description { get; set; }\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### EventType\n\n public AutoscalingEvent.Types.AutoscalingEventType EventType { get; set; }\n\nThe type of autoscaling event to report.\n\n### TargetNumWorkers\n\n public long TargetNumWorkers { get; set; }\n\nThe target number of workers the worker pool wants to resize to use.\n\n### Time\n\n public Timestamp Time { get; set; }\n\nThe time this event was emitted to indicate a new target or current\nnum_workers value.\n\n### WorkerPool\n\n public string WorkerPool { get; set; }\n\nA short and friendly name for the worker pool this event refers to."]]