Struct google_appengine1_beta4::TrafficSplit
[−]
[src]
pub struct TrafficSplit { pub shard_by: Option<String>, pub allocations: Option<HashMap<String, f64>>, }
Traffic routing configuration for versions within a single module. Traffic splits define how traffic directed to the module is assigned to versions.
This type is not used in any activity, and only used as part of another schema.
Fields
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.
allocations: Option<HashMap<String, f64>>
Mapping from version IDs within the module to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the module may not have any traffic allocation. Modules that have traffic allocated cannot be deleted until either the module 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.
Trait Implementations
impl Debug for TrafficSplit
[src]
impl Clone for TrafficSplit
[src]
fn clone(&self) -> TrafficSplit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for TrafficSplit
[src]
fn default() -> TrafficSplit
Returns the "default value" for a type. Read more