public MapField<string, double> Allocations { get; }
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version. Each version can
be specified only once, but some versions in the service may not
have any traffic allocation. Services that have traffic allocated
cannot be deleted until either the service is deleted or
their traffic allocation is removed. Allocations must sum to 1.
Up to two decimal place precision is supported for IP-based splits and
up to three decimal places is supported for cookie-based splits.
public TrafficSplit.Types.ShardBy ShardBy { get; set; }
Mechanism used to determine which version a request is sent to.
The traffic selection algorithm will
be stable for either type until allocations are changed.
[[["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 latest version of the Google.Cloud.AppEngine.V1 API is 2.4.0, with documentation available for multiple previous versions, down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTrafficSplit\u003c/code\u003e is a class within the Google.Cloud.AppEngine.V1 namespace used to define traffic routing configuration among different versions of a service.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTrafficSplit\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTrafficSplit\u003c/code\u003e class has properties for \u003ccode\u003eAllocations\u003c/code\u003e, which determine the fractional traffic allocation to each version, and \u003ccode\u003eShardBy\u003c/code\u003e, which dictates the mechanism used to direct traffic.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for the class, a parameterless constructor \u003ccode\u003eTrafficSplit()\u003c/code\u003e and one that takes a \u003ccode\u003eTrafficSplit\u003c/code\u003e object as an argument \u003ccode\u003eTrafficSplit(TrafficSplit other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]