Class: Google::Apis::ComputeAlpha::RequestMirrorPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::RequestMirrorPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb more...
Overview
A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow.
Instance Attribute Summary collapse
-
#backend_service ⇒ String
The full or partial URL to the BackendService resource being mirrored to.
-
#mirror_percent ⇒ Float
The percentage of requests to be mirrored to
backend_service
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestMirrorPolicy
constructor
A new instance of RequestMirrorPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RequestMirrorPolicy
Returns a new instance of RequestMirrorPolicy.
42500 42501 42502 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42500 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backend_service ⇒ String
The full or partial URL to the BackendService resource being mirrored to. The
backend service configured for a mirroring policy must reference backends that
are of the same type as the original backend service matched in the URL map.
Serverless NEG backends are not currently supported as a mirrored backend
service.
Corresponds to the JSON property backendService
42493 42494 42495 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42493 def backend_service @backend_service end |
#mirror_percent ⇒ Float
The percentage of requests to be mirrored to backend_service
.
Corresponds to the JSON property mirrorPercent
42498 42499 42500 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42498 def mirror_percent @mirror_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
42505 42506 42507 42508 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 42505 def update!(**args) @backend_service = args[:backend_service] if args.key?(:backend_service) @mirror_percent = args[:mirror_percent] if args.key?(:mirror_percent) end |