google_api_service_management v0.20.0 GoogleApi.ServiceManagement.V1.Model.TrafficPercentStrategy View Source
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 precentage for each config version.
One example of how to gradually rollout a new service configuration using this strategy: Day 1
Rollout {
id: "example.googleapis.com/rollout_20160206"
traffic_percent_strategy {
percentages: {
"example.googleapis.com/20160201": 70.00
"example.googleapis.com/20160206": 30.00
}
}
}
Day 2
Rollout {
id: "example.googleapis.com/rollout_20160207"
traffic_percent_strategy: {
percentages: {
"example.googleapis.com/20160206": 100.00
}
}
}
Attributes
percentages
(type:map()
, default:nil
) - 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.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Sourcet() :: %GoogleApi.ServiceManagement.V1.Model.TrafficPercentStrategy{ percentages: map() }
Link to this section Functions
Unwrap a decoded JSON object into its complex fields.