public sealed class TrafficPercentStrategy : IMessage<Rollout.Types.TrafficPercentStrategy>, IEquatable<Rollout.Types.TrafficPercentStrategy>, IDeepCloneable<Rollout.Types.TrafficPercentStrategy>, IBufferMessage, IMessage
Strategy that specifies how clients of Google Service Controller want to
send traffic to use different config versions. This is generally
used by API proxy to split traffic based on your configured percentage for
each config version.
One example of how to gradually rollout a new service configuration using
this
strategy:
Day 1
public MapField<string, double> Percentages { get; }
Maps service configuration IDs to their corresponding traffic percentage.
Key is the service configuration ID, Value is the traffic percentage
which must be greater than 0.0 and the sum must equal to 100.0.
[[["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-03-21 UTC."],[[["This page provides documentation for the `TrafficPercentStrategy` class within the `Google.Cloud.ServiceManagement.V1` namespace, used for managing traffic distribution across different service configuration versions."],["The `TrafficPercentStrategy` class is part of the Google Cloud Service Management API and defines a strategy for gradually rolling out new service configurations by specifying traffic percentages for each version."],["This `TrafficPercentStrategy` class implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` for message handling, object equality, deep cloning, and buffer message functionalities, respectively."],["It includes a `Percentages` property, which is a `MapField` that allows you to assign a percentage of traffic to specific service configuration IDs, ensuring traffic distribution adds up to 100%."],["The documentation provides examples of how to use the `TrafficPercentStrategy` class for a gradual rollout, such as splitting traffic between two different versions of the service configuration, with steps for each day."]]],[]]