Class: Google::Cloud::ServiceManagement::V1::Rollout::TrafficPercentStrategy
- Inherits:
-
Object
- Object
- Google::Cloud::ServiceManagement::V1::Rollout::TrafficPercentStrategy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/api/servicemanagement/v1/resources.rb
Overview
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: "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
}
}
}
Defined Under Namespace
Classes: PercentagesEntry
Instance Attribute Summary collapse
-
#percentages ⇒ ::Google::Protobuf::Map{::String => ::Float}
Maps service configuration IDs to their corresponding traffic percentage.
Instance Attribute Details
#percentages ⇒ ::Google::Protobuf::Map{::String => ::Float}
Returns 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.
278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'proto_docs/google/api/servicemanagement/v1/resources.rb', line 278 class TrafficPercentStrategy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Float] class PercentagesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |