Struct gapi_grpc::google::api::servicemanagement::v1::rollout::TrafficPercentStrategy[][src]

pub struct TrafficPercentStrategy {
    pub percentages: HashMap<String, f64>,
}

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
    }
  }
}

Fields

percentages: HashMap<String, f64>

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.

Trait Implementations

impl Clone for TrafficPercentStrategy[src]

impl Debug for TrafficPercentStrategy[src]

impl Default for TrafficPercentStrategy[src]

impl Message for TrafficPercentStrategy[src]

impl PartialEq<TrafficPercentStrategy> for TrafficPercentStrategy[src]

impl StructuralPartialEq for TrafficPercentStrategy[src]

Auto Trait Implementations

impl RefUnwindSafe for TrafficPercentStrategy

impl Send for TrafficPercentStrategy

impl Sync for TrafficPercentStrategy

impl Unpin for TrafficPercentStrategy

impl UnwindSafe for TrafficPercentStrategy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]