类 VirtualServiceOuterClass.HTTPFaultInjection.Delay
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
istio.networking.v1alpha3.VirtualServiceOuterClass.HTTPFaultInjection.Delay
- 所有已实现的接口:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder,Serializable
public static final class VirtualServiceOuterClass.HTTPFaultInjection.Delay
extends com.google.protobuf.GeneratedMessageV3
implements VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder
Delay specification is used to inject latency into the request
forwarding path. The following example will introduce a 5 second delay
in 1 out of every 1000 requests to the "v1" version of the "reviews"
service from all pods with label env: prod
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews-route
spec:
hosts:
- reviews.prod.svc.cluster.local
http:
- match:
- sourceLabels:
env: prod
route:
- destination:
host: reviews.prod.svc.cluster.local
subset: v1
fault:
delay:
percentage:
value: 0.1
fixedDelay: 5s
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: reviews-route
spec:
hosts:
- reviews.prod.svc.cluster.local
http:
- match:
- sourceLabels:
env: prod
route:
- destination:
host: reviews.prod.svc.cluster.local
subset: v1
fault:
delay:
percentage:
value: 0.1
fixedDelay: 5s
```
{{</tab>}}
{{</tabset>}}
The _fixedDelay_ field is used to indicate the amount of delay in seconds.
The optional _percentage_ field can be used to only delay a certain
percentage of requests. If left unspecified, all request will be delayed.
Protobuf type istio.networking.v1alpha3.HTTPFaultInjection.Delay- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static final classDelay specification is used to inject latency into the request forwarding path.static enum从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter 从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
字段概要
字段修饰符和类型字段说明static final intstatic final intstatic final intstatic final int从类继承的字段 com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields从类继承的字段 com.google.protobuf.AbstractMessage
memoizedSize从类继承的字段 com.google.protobuf.AbstractMessageLite
memoizedHashCode -
方法概要
修饰符和类型方法说明booleanstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Duration$hide_from_docscom.google.protobuf.DurationOrBuilder$hide_from_docscom.google.protobuf.DurationAdd a fixed delay before forwarding the request.com.google.protobuf.DurationOrBuilderAdd a fixed delay before forwarding the request.com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPFaultInjection.Delay> int已过时。istio.networking.v1alpha3.HTTPFaultInjection.Delay.percent is deprecated.Percentage of requests on which the delay will be injected.Percentage of requests on which the delay will be injected.intboolean$hide_from_docsbooleanAdd a fixed delay before forwarding the request.inthashCode()booleanPercentage of requests on which the delay will be injected.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPFaultInjection.Delay> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) 从类继承的方法 com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag从类继承的方法 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString从类继承的方法 com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo从接口继承的方法 com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
字段详细资料
-
PERCENT_FIELD_NUMBER
public static final int PERCENT_FIELD_NUMBER- 另请参阅:
-
FIXED_DELAY_FIELD_NUMBER
public static final int FIXED_DELAY_FIELD_NUMBER- 另请参阅:
-
EXPONENTIAL_DELAY_FIELD_NUMBER
public static final int EXPONENTIAL_DELAY_FIELD_NUMBER- 另请参阅:
-
PERCENTAGE_FIELD_NUMBER
public static final int PERCENTAGE_FIELD_NUMBER- 另请参阅:
-
-
方法详细资料
-
newInstance
- 覆盖:
newInstance在类中com.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3
-
getHttpDelayTypeCase
-
getPercent
已过时。istio.networking.v1alpha3.HTTPFaultInjection.Delay.percent is deprecated. See networking/v1alpha3/virtual_service.proto;l=1742Percentage of requests on which the delay will be injected (0-100). Use of integer `percent` value is deprecated. Use the double `percentage` field instead.
int32 percent = 1 [deprecated = true];- 指定者:
getPercent在接口中VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder- 返回:
- The percent.
-
hasFixedDelay
public boolean hasFixedDelay()Add a fixed delay before forwarding the request. Format: 1h/1m/1s/1ms. MUST be >=1ms.
.google.protobuf.Duration fixed_delay = 2 [(.google.api.field_behavior) = REQUIRED];- 指定者:
hasFixedDelay在接口中VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder- 返回:
- Whether the fixedDelay field is set.
-
getFixedDelay
public com.google.protobuf.Duration getFixedDelay()Add a fixed delay before forwarding the request. Format: 1h/1m/1s/1ms. MUST be >=1ms.
.google.protobuf.Duration fixed_delay = 2 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getFixedDelay在接口中VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder- 返回:
- The fixedDelay.
-
getFixedDelayOrBuilder
public com.google.protobuf.DurationOrBuilder getFixedDelayOrBuilder()Add a fixed delay before forwarding the request. Format: 1h/1m/1s/1ms. MUST be >=1ms.
.google.protobuf.Duration fixed_delay = 2 [(.google.api.field_behavior) = REQUIRED]; -
hasExponentialDelay
public boolean hasExponentialDelay()$hide_from_docs
.google.protobuf.Duration exponential_delay = 3;- 指定者:
hasExponentialDelay在接口中VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder- 返回:
- Whether the exponentialDelay field is set.
-
getExponentialDelay
public com.google.protobuf.Duration getExponentialDelay()$hide_from_docs
.google.protobuf.Duration exponential_delay = 3;- 指定者:
getExponentialDelay在接口中VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder- 返回:
- The exponentialDelay.
-
getExponentialDelayOrBuilder
public com.google.protobuf.DurationOrBuilder getExponentialDelayOrBuilder()$hide_from_docs
.google.protobuf.Duration exponential_delay = 3; -
hasPercentage
public boolean hasPercentage()Percentage of requests on which the delay will be injected.
.istio.networking.v1alpha3.Percent percentage = 5;- 指定者:
hasPercentage在接口中VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder- 返回:
- Whether the percentage field is set.
-
getPercentage
Percentage of requests on which the delay will be injected.
.istio.networking.v1alpha3.Percent percentage = 5;- 指定者:
getPercentage在接口中VirtualServiceOuterClass.HTTPFaultInjection.DelayOrBuilder- 返回:
- The percentage.
-
getPercentageOrBuilder
Percentage of requests on which the delay will be injected.
.istio.networking.v1alpha3.Percent percentage = 5; -
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3
-
writeTo
- 指定者:
writeTo在接口中com.google.protobuf.MessageLite- 覆盖:
writeTo在类中com.google.protobuf.GeneratedMessageV3- 抛出:
IOException
-
getSerializedSize
public int getSerializedSize()- 指定者:
getSerializedSize在接口中com.google.protobuf.MessageLite- 覆盖:
getSerializedSize在类中com.google.protobuf.GeneratedMessageV3
-
equals
- 指定者:
equals在接口中com.google.protobuf.Message- 覆盖:
equals在类中com.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- 指定者:
hashCode在接口中com.google.protobuf.Message- 覆盖:
hashCode在类中com.google.protobuf.AbstractMessage
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(InputStream input) throws IOException - 抛出:
IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 抛出:
IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseDelimitedFrom(InputStream input) throws IOException - 抛出:
IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 抛出:
IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - 抛出:
IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 抛出:
IOException
-
newBuilderForType
- 指定者:
newBuilderForType在接口中com.google.protobuf.Message- 指定者:
newBuilderForType在接口中com.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static VirtualServiceOuterClass.HTTPFaultInjection.Delay.Builder newBuilder(VirtualServiceOuterClass.HTTPFaultInjection.Delay prototype) -
toBuilder
- 指定者:
toBuilder在接口中com.google.protobuf.Message- 指定者:
toBuilder在接口中com.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualServiceOuterClass.HTTPFaultInjection.Delay.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - 指定者:
newBuilderForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
public static com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPFaultInjection.Delay> parser() -
getParserForType
public com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPFaultInjection.Delay> getParserForType()- 指定者:
getParserForType在接口中com.google.protobuf.Message- 指定者:
getParserForType在接口中com.google.protobuf.MessageLite- 覆盖:
getParserForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-