TrafficSplit class

Traffic routing configuration for versions within a single service.

Traffic splits define how traffic directed to the service is assigned to versions.

Constructors

TrafficSplit({Map<String, double>? allocations, String? shardBy})
TrafficSplit.fromJson(Map json_)

Properties

allocations Map<String, double>?
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shardBy String?
Mechanism used to determine which version a request is sent to.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited