TrafficPercentStrategy class

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 Rollout { id: "" traffic_percent_strategy { percentages: { "": 70.00 "": 30.00 } } } Day 2 Rollout { id: "" traffic_percent_strategy: { percentages: { "": 100.00 } } }


TrafficPercentStrategy.fromJson(Map _json)


hashCode int
The hash code for this object. [...]
read-only, inherited
percentages Map<String, double>
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.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]