Interface HttpRoute.FaultInjectionPolicy.AbortOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
HttpRoute.FaultInjectionPolicy.Abort, HttpRoute.FaultInjectionPolicy.Abort.Builder
Enclosing class:
HttpRoute.FaultInjectionPolicy

public static interface HttpRoute.FaultInjectionPolicy.AbortOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The HTTP status code used to abort the request.
    int
    The percentage of traffic which will be aborted.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getHttpStatus

      int getHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be between 200 and 599 inclusive.
       
      int32 http_status = 1;
      Returns:
      The httpStatus.
    • getPercentage

      int getPercentage()
       The percentage of traffic which will be aborted.
      
       The value must be between [0, 100]
       
      int32 percentage = 2;
      Returns:
      The percentage.