Struct google_appengine1::TrafficSplit[][src]

pub struct TrafficSplit {
    pub shard_by: Option<String>,
    pub allocations: Option<HashMap<String, f64>>,
}

Traffic routing configuration for versions within a single service. Traffic splits define how traffic directed to the service 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.

Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version. Each version can be specified only once, but some versions in the service may not have any traffic allocation. Services that have traffic allocated cannot be deleted until either the service 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 Default for TrafficSplit
[src]

Returns the "default value" for a type. Read more

impl Clone for TrafficSplit
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TrafficSplit
[src]

Formats the value using the given formatter. Read more

impl Part for TrafficSplit
[src]

Auto Trait Implementations