Network Services V1 API - Class Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort (v1.0.1)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort.

Specification of how client requests are aborted as part of fault injection before being sent to a destination.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#http_status

def http_status() -> ::Integer
Returns
  • (::Integer) — The HTTP status code used to abort the request.

    The value must be between 200 and 599 inclusive.

#http_status=

def http_status=(value) -> ::Integer
Parameter
  • value (::Integer) — The HTTP status code used to abort the request.

    The value must be between 200 and 599 inclusive.

Returns
  • (::Integer) — The HTTP status code used to abort the request.

    The value must be between 200 and 599 inclusive.

#percentage

def percentage() -> ::Integer
Returns
  • (::Integer) — The percentage of traffic which will be aborted.

    The value must be between [0, 100]

#percentage=

def percentage=(value) -> ::Integer
Parameter
  • value (::Integer) — The percentage of traffic which will be aborted.

    The value must be between [0, 100]

Returns
  • (::Integer) — The percentage of traffic which will be aborted.

    The value must be between [0, 100]