TrafficTarget class
TrafficTarget holds a single entry of the routing table for a Route.
Constructors
- TrafficTarget({String? configurationName, bool? latestRevision, int? percent, String? revisionName, String? tag, String? url})
- TrafficTarget.fromJson(Map json_)
Properties
- configurationName ↔ String?
-
Not supported in Cloud Run.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- latestRevision ↔ bool?
-
Uses the "status.latestReadyRevisionName" of the Service to determine the
traffic target.
getter/setter pair
- percent ↔ int?
-
Percent specifies percent of the traffic to this Revision or
Configuration.
getter/setter pair
- revisionName ↔ String?
-
Points this traffic target to a specific Revision.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag ↔ String?
-
Tag is used to expose a dedicated url for referencing this target
exclusively.
getter/setter pair
- url ↔ String?
-
URL displays the URL for accessing tagged traffic targets.
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