URLMapPathMatcherDefaultRouteAction class
Constructors
-
URLMapPathMatcherDefaultRouteAction({Input<URLMapPathMatcherDefaultRouteActionCachePolicy?>? cachePolicy, Input<URLMapPathMatcherDefaultRouteActionCorsPolicy?>? corsPolicy, Input<URLMapPathMatcherDefaultRouteActionFaultInjectionPolicy?>? faultInjectionPolicy, Input<URLMapPathMatcherDefaultRouteActionMaxStreamDuration?>? maxStreamDuration, Input<URLMapPathMatcherDefaultRouteActionRequestMirrorPolicy?>? requestMirrorPolicy, Input<URLMapPathMatcherDefaultRouteActionRetryPolicy?>? retryPolicy, Input<URLMapPathMatcherDefaultRouteActionTimeout?>? timeout, Input<URLMapPathMatcherDefaultRouteActionUrlRewrite?>? urlRewrite, Input<List<URLMapPathMatcherDefaultRouteActionWeightedBackendService>?>? weightedBackendServices})
-
Creates a new URLMapPathMatcherDefaultRouteAction.
cachePolicy Specifies the cache policy configuration for matched traffic. Available
corsPolicy The specification for allowing client side cross-origin requests. Please see
faultInjectionPolicy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
maxStreamDuration Specifies the maximum duration (timeout) for streams on the selected route.
requestMirrorPolicy Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service.
retryPolicy Specifies the retry policy associated with this route.
timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been
urlRewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service.
weightedBackendServices A list of weighted backend services to send traffic to when a route match occurs.
const
-
URLMapPathMatcherDefaultRouteAction.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
cachePolicy
→ Input<URLMapPathMatcherDefaultRouteActionCachePolicy?>?
-
Specifies the cache policy configuration for matched traffic. Available
only for Global EXTERNAL_MANAGED load balancer schemes. At least one
property must be specified. This policy cannot be specified if any target
backend has Identity-Aware Proxy enabled.
Structure is documented below.
final
-
corsPolicy
→ Input<URLMapPathMatcherDefaultRouteActionCorsPolicy?>?
-
The specification for allowing client side cross-origin requests. Please see
W3C Recommendation for Cross Origin Resource Sharing
Structure is documented below.
final
-
faultInjectionPolicy
→ Input<URLMapPathMatcherDefaultRouteActionFaultInjectionPolicy?>?
-
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a
percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted
by the Loadbalancer for a percentage of requests.
timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy.
Structure is documented below.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
maxStreamDuration
→ Input<URLMapPathMatcherDefaultRouteActionMaxStreamDuration?>?
-
Specifies the maximum duration (timeout) for streams on the selected route.
Unlike the
Timeout field where the timeout duration starts from the time the request
has been fully processed (known as end-of-stream), the duration in this field
is computed from the beginning of the stream until the response has been processed,
including all retries. A stream that does not complete in this duration is closed.
Structure is documented below.
final
-
requestMirrorPolicy
→ Input<URLMapPathMatcherDefaultRouteActionRequestMirrorPolicy?>?
-
Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service.
Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service,
the host / authority header is suffixed with -shadow.
Structure is documented below.
final
-
retryPolicy
→ Input<URLMapPathMatcherDefaultRouteActionRetryPolicy?>?
-
Specifies the retry policy associated with this route.
Structure is documented below.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
timeout
→ Input<URLMapPathMatcherDefaultRouteActionTimeout?>?
-
Specifies the timeout for the selected route. Timeout is computed from the time the request has been
fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries.
If not specified, will use the largest timeout among all backend services associated with the route.
Structure is documented below.
final
-
urlRewrite
→ Input<URLMapPathMatcherDefaultRouteActionUrlRewrite?>?
-
The spec to modify the URL of the request, prior to forwarding the request to the matched service.
Structure is documented below.
final
-
weightedBackendServices
→ Input<List<URLMapPathMatcherDefaultRouteActionWeightedBackendService>?>?
-
A list of weighted backend services to send traffic to when a route match occurs.
The weights determine the fraction of traffic that flows to their corresponding backend service.
If all traffic needs to go to a single backend service, there must be one weightedBackendService
with weight set to a non 0 number.
Once a backendService is identified and before forwarding the request to the backend service,
advanced routing actions like Url rewrites and header transformations are applied depending on
additional settings specified in this HttpRouteAction.
Structure is documented below.
final