Class: Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networkservices/v1/http_route.rb

Overview

The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.

Defined Under Namespace

Classes: Abort, Delay

Instance Attribute Summary collapse

Instance Attribute Details

#abort::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Abort

Returns The specification for aborting to client requests.

Returns:



318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 318

class FaultInjectionPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specification of how client requests are delayed as part of fault
  # injection before being sent to a destination.
  # @!attribute [rw] fixed_delay
  #   @return [::Google::Protobuf::Duration]
  #     Specify a fixed delay before forwarding the request.
  # @!attribute [rw] percentage
  #   @return [::Integer]
  #     The percentage of traffic on which delay will be injected.
  #
  #     The value must be between [0, 100]
  class Delay
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specification of how client requests are aborted as part of fault
  # injection before being sent to a destination.
  # @!attribute [rw] http_status
  #   @return [::Integer]
  #     The HTTP status code used to abort the request.
  #
  #     The value must be between 200 and 599 inclusive.
  # @!attribute [rw] percentage
  #   @return [::Integer]
  #     The percentage of traffic which will be aborted.
  #
  #     The value must be between [0, 100]
  class Abort
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#delay::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Delay

Returns The specification for injecting delay to client requests.

Returns:



318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 318

class FaultInjectionPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specification of how client requests are delayed as part of fault
  # injection before being sent to a destination.
  # @!attribute [rw] fixed_delay
  #   @return [::Google::Protobuf::Duration]
  #     Specify a fixed delay before forwarding the request.
  # @!attribute [rw] percentage
  #   @return [::Integer]
  #     The percentage of traffic on which delay will be injected.
  #
  #     The value must be between [0, 100]
  class Delay
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specification of how client requests are aborted as part of fault
  # injection before being sent to a destination.
  # @!attribute [rw] http_status
  #   @return [::Integer]
  #     The HTTP status code used to abort the request.
  #
  #     The value must be between 200 and 599 inclusive.
  # @!attribute [rw] percentage
  #   @return [::Integer]
  #     The percentage of traffic which will be aborted.
  #
  #     The value must be between [0, 100]
  class Abort
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end