Class RouteDestination
L4 routing rule weighted destination.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class RouteDestination
Constructors
RouteDestination()
Initializes a new instance of the RouteDestination class.
Declaration
public RouteDestination()
Properties
Destination
Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
Declaration
[JsonProperty(PropertyName = "destination", Required = Required.Always, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public Destination Destination { get; set; }
Property Value
Type | Description |
---|---|
Destination |
weight
The proportion of traffic to be forwarded to the service version. If there is only one destination in a rule, all traffic will be routed to it irrespective of the weight.
Declaration
[JsonProperty(PropertyName = "weight", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public int? weight { get; set; }
Property Value
Type | Description |
---|---|
int? |
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate()
Exceptions
Type | Condition |
---|---|
ValidationException | Thrown if validation fails. |