Class TrafficTarget (2.0.0-beta01)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class TrafficTarget : IMessage<TrafficTarget>, IEquatable<TrafficTarget>, IDeepCloneable<TrafficTarget>, IBufferMessage, IMessage

Holds a single traffic routing entry for the Service. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.

Inheritance

Object > TrafficTarget

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

TrafficTarget()

public TrafficTarget()

TrafficTarget(TrafficTarget)

public TrafficTarget(TrafficTarget other)
Parameter
NameDescription
otherTrafficTarget

Properties

Percent

public int Percent { get; set; }

Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.

Property Value
TypeDescription
Int32

Revision

public string Revision { get; set; }

Revision to which to send this portion of traffic, if traffic allocation is by revision.

Property Value
TypeDescription
String

RevisionAsRevisionName

public RevisionName RevisionAsRevisionName { get; set; }

RevisionName-typed view over the Revision resource name property.

Property Value
TypeDescription
RevisionName

Tag

public string Tag { get; set; }

Indicates a string to be part of the URI to exclusively reference this target.

Property Value
TypeDescription
String

Type

public TrafficTargetAllocationType Type { get; set; }

The allocation type for this traffic target.

Property Value
TypeDescription
TrafficTargetAllocationType