Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v3/clusters.proto
package io.envoyproxy.envoy.admin.v3;
/**
*
* Details an individual cluster's current status.
* [#next-free-field: 9]
*
*
* Protobuf type {@code envoy.admin.v3.ClusterStatus}
*/
public final class ClusterStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.ClusterStatus)
ClusterStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterStatus.newBuilder() to construct.
private ClusterStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterStatus() {
name_ = "";
hostStatuses_ = java.util.Collections.emptyList();
observabilityName_ = "";
edsServiceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClusterStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
addedViaApi_ = input.readBool();
break;
}
case 26: {
io.envoyproxy.envoy.type.v3.Percent.Builder subBuilder = null;
if (successRateEjectionThreshold_ != null) {
subBuilder = successRateEjectionThreshold_.toBuilder();
}
successRateEjectionThreshold_ = input.readMessage(io.envoyproxy.envoy.type.v3.Percent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(successRateEjectionThreshold_);
successRateEjectionThreshold_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
hostStatuses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
hostStatuses_.add(
input.readMessage(io.envoyproxy.envoy.admin.v3.HostStatus.parser(), extensionRegistry));
break;
}
case 42: {
io.envoyproxy.envoy.type.v3.Percent.Builder subBuilder = null;
if (localOriginSuccessRateEjectionThreshold_ != null) {
subBuilder = localOriginSuccessRateEjectionThreshold_.toBuilder();
}
localOriginSuccessRateEjectionThreshold_ = input.readMessage(io.envoyproxy.envoy.type.v3.Percent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localOriginSuccessRateEjectionThreshold_);
localOriginSuccessRateEjectionThreshold_ = subBuilder.buildPartial();
}
break;
}
case 50: {
io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Builder subBuilder = null;
if (circuitBreakers_ != null) {
subBuilder = circuitBreakers_.toBuilder();
}
circuitBreakers_ = input.readMessage(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(circuitBreakers_);
circuitBreakers_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
observabilityName_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
edsServiceName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
hostStatuses_ = java.util.Collections.unmodifiableList(hostStatuses_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ClustersProto.internal_static_envoy_admin_v3_ClusterStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ClustersProto.internal_static_envoy_admin_v3_ClusterStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.ClusterStatus.class, io.envoyproxy.envoy.admin.v3.ClusterStatus.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDED_VIA_API_FIELD_NUMBER = 2;
private boolean addedViaApi_;
/**
*
* Denotes whether this cluster was added via API or configured statically.
*
*
* bool added_via_api = 2;
* @return The addedViaApi.
*/
@java.lang.Override
public boolean getAddedViaApi() {
return addedViaApi_;
}
public static final int SUCCESS_RATE_EJECTION_THRESHOLD_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.type.v3.Percent successRateEjectionThreshold_;
/**
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent success_rate_ejection_threshold = 3;
* @return Whether the successRateEjectionThreshold field is set.
*/
@java.lang.Override
public boolean hasSuccessRateEjectionThreshold() {
return successRateEjectionThreshold_ != null;
}
/**
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent success_rate_ejection_threshold = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.PercentOrBuilder getSuccessRateEjectionThresholdOrBuilder() {
return getSuccessRateEjectionThreshold();
}
public static final int HOST_STATUSES_FIELD_NUMBER = 4;
private java.util.List hostStatuses_;
/**
*
* Mapping from host address to the host's current status.
*
* Mapping from host address to the host's current status.
*
*
* repeated .envoy.admin.v3.HostStatus host_statuses = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.HostStatusOrBuilder getHostStatusesOrBuilder(
int index) {
return hostStatuses_.get(index);
}
public static final int LOCAL_ORIGIN_SUCCESS_RATE_EJECTION_THRESHOLD_FIELD_NUMBER = 5;
private io.envoyproxy.envoy.type.v3.Percent localOriginSuccessRateEjectionThreshold_;
/**
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
* @return Whether the localOriginSuccessRateEjectionThreshold field is set.
*/
@java.lang.Override
public boolean hasLocalOriginSuccessRateEjectionThreshold() {
return localOriginSuccessRateEjectionThreshold_ != null;
}
/**
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.PercentOrBuilder getLocalOriginSuccessRateEjectionThresholdOrBuilder() {
return getLocalOriginSuccessRateEjectionThreshold();
}
public static final int CIRCUIT_BREAKERS_FIELD_NUMBER = 6;
private io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers circuitBreakers_;
/**
*
* :ref:`Circuit breaking <arch_overview_circuit_break>` settings of the cluster.
*
*
* .envoy.config.cluster.v3.CircuitBreakers circuit_breakers = 6;
* @return Whether the circuitBreakers field is set.
*/
@java.lang.Override
public boolean hasCircuitBreakers() {
return circuitBreakers_ != null;
}
/**
*
* :ref:`Circuit breaking <arch_overview_circuit_break>` settings of the cluster.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private boolean addedViaApi_ ;
/**
*
* Denotes whether this cluster was added via API or configured statically.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent success_rate_ejection_threshold = 3;
* @return Whether the successRateEjectionThreshold field is set.
*/
public boolean hasSuccessRateEjectionThreshold() {
return successRateEjectionThresholdBuilder_ != null || successRateEjectionThreshold_ != null;
}
/**
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent success_rate_ejection_threshold = 3;
*/
public Builder setSuccessRateEjectionThreshold(io.envoyproxy.envoy.type.v3.Percent value) {
if (successRateEjectionThresholdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
successRateEjectionThreshold_ = value;
onChanged();
} else {
successRateEjectionThresholdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``false``, all errors: externally and locally generated were used to calculate the threshold.
* If
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``, only externally generated errors were used to calculate the threshold.
* The threshold is used to eject hosts based on their success rate. See
* :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
* @return Whether the localOriginSuccessRateEjectionThreshold field is set.
*/
public boolean hasLocalOriginSuccessRateEjectionThreshold() {
return localOriginSuccessRateEjectionThresholdBuilder_ != null || localOriginSuccessRateEjectionThreshold_ != null;
}
/**
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
*
* .envoy.type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
*/
public Builder setLocalOriginSuccessRateEjectionThreshold(io.envoyproxy.envoy.type.v3.Percent value) {
if (localOriginSuccessRateEjectionThresholdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localOriginSuccessRateEjectionThreshold_ = value;
onChanged();
} else {
localOriginSuccessRateEjectionThresholdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*
* The success rate threshold used in the last interval when only locally originated failures were
* taken into account and externally originated errors were treated as success.
* This field should be interpreted only when
* :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is ``true``. The threshold is used to eject hosts based on their success rate.
* See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
* details.
* Note: this field may be omitted in any of the three following cases:
* 1. There were not enough hosts with enough request volume to proceed with success rate based
* outlier ejection.
* 2. The threshold is computed to be < 0 because a negative value implies that there was no
* threshold for that interval.
* 3. Outlier detection is not enabled for this cluster.
*