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"]],[["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-04-17 UTC."],[[["The `TrafficSplit` class is used to configure traffic routing for different versions within a service, defining how incoming traffic is distributed among them."],["This class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, indicating its role in message handling and object management within the .NET environment."],["The `TrafficSplit` class offers two constructors: a default constructor and another that takes an existing `TrafficSplit` object to create a copy."],["The `Allocations` property defines traffic distribution among different version IDs, where each version is assigned a fractional traffic allocation that must sum up to 1, with support for up to three decimal places."],["The `ShardBy` property determines the mechanism for routing incoming requests to specific versions and maintains stability unless allocations are changed."]]],[]]