Class HTTPRouteDestination
Each routing rule is associated with one or more service versions (see glossary in beginning of document). Weights associated with the version determine the proportion of traffic it receives. For example, the following rule will route 25% of traffic for the “reviews” service to instances with the “v2” tag and the remaining traffic (i.e., 75%) to “v1”.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class HTTPRouteDestination
Constructors
HTTPRouteDestination()
Initializes a new instance of the HTTPRouteDestination class.
Declaration
public HTTPRouteDestination()
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 |
Headers
Header manipulation rules
Declaration
[JsonProperty(PropertyName = "headers", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public Headers Headers { get; set; }
Property Value
Type | Description |
---|---|
Headers |
weight
The proportion of traffic to be forwarded to the service version. (0-100). Sum of weights across destinations SHOULD BE == 100. If there is only one destination in a rule, the weight value is assumed to be 100.
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. |