2023-08-03 18:42:04 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-21 17:31:54 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-08-03 18:42:04 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
package hashicorp.consul.mesh.v2beta1;
|
2023-08-03 18:42:04 +00:00
|
|
|
|
2023-09-14 22:19:04 +00:00
|
|
|
import "google/protobuf/wrappers.proto";
|
|
|
|
|
2023-08-03 18:42:04 +00:00
|
|
|
message HTTPRouteRetries {
|
2023-09-14 22:19:04 +00:00
|
|
|
// Number is the number of times to retry the request when a retryable
|
2023-08-03 18:42:04 +00:00
|
|
|
// result occurs.
|
2023-09-14 22:19:04 +00:00
|
|
|
google.protobuf.UInt32Value number = 1;
|
2023-08-03 18:42:04 +00:00
|
|
|
|
|
|
|
// RetryOnConnectFailure allows for connection failure errors to trigger a
|
|
|
|
// retry.
|
|
|
|
bool on_connect_failure = 2;
|
|
|
|
|
|
|
|
// RetryOn allows setting envoy specific conditions when a request should
|
|
|
|
// be automatically retried.
|
|
|
|
repeated string on_conditions = 3;
|
|
|
|
|
|
|
|
// RetryOnStatusCodes is a flat list of http response status codes that are
|
|
|
|
// eligible for retry. This again should be feasible in any reasonable proxy.
|
|
|
|
repeated uint32 on_status_codes = 4;
|
|
|
|
}
|