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\u003eThis page details the \u003ccode\u003eTrafficSplit\u003c/code\u003e class, which is used for configuring traffic routing for different versions within a single Google App Engine service.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTrafficSplit\u003c/code\u003e is part of the \u003ccode\u003eGoogle.Cloud.AppEngine.V1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.AppEngine.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows mapping version IDs to fractional traffic allocations, where each version can only be specified once and the allocations for all versions must add up to 1.\u003c/p\u003e\n"],["\u003cp\u003eTraffic can be allocated in up to two decimal places for IP-based splits, and up to three decimal places for cookie-based splits.\u003c/p\u003e\n"],["\u003cp\u003eThe page also provides a history of different version numbers of this document, with the latest being version 2.4.0, and this current page's version being 1.4.0.\u003c/p\u003e\n"]]],[],null,[]]