Documentation ¶
Index ¶
- Variables
- type ConsecutiveErrors
- func (*ConsecutiveErrors) Descriptor() ([]byte, []int)deprecated
- func (x *ConsecutiveErrors) GetEnforcing() *wrapperspb.UInt32Value
- func (x *ConsecutiveErrors) GetErrorBuckets() *v3.ErrorBuckets
- func (x *ConsecutiveErrors) GetName() string
- func (x *ConsecutiveErrors) GetThreshold() *wrapperspb.UInt32Value
- func (*ConsecutiveErrors) ProtoMessage()
- func (x *ConsecutiveErrors) ProtoReflect() protoreflect.Message
- func (x *ConsecutiveErrors) Reset()
- func (x *ConsecutiveErrors) String() string
- func (m *ConsecutiveErrors) Validate() error
- func (m *ConsecutiveErrors) ValidateAll() error
- type ConsecutiveErrorsMultiError
- type ConsecutiveErrorsValidationError
- func (e ConsecutiveErrorsValidationError) Cause() error
- func (e ConsecutiveErrorsValidationError) Error() string
- func (e ConsecutiveErrorsValidationError) ErrorName() string
- func (e ConsecutiveErrorsValidationError) Field() string
- func (e ConsecutiveErrorsValidationError) Key() bool
- func (e ConsecutiveErrorsValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_outlier_detection_monitors_consecutive_errors_v3_consecutive_errors_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConsecutiveErrors ¶
type ConsecutiveErrors struct { // Monitor name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The number of consecutive errors before ejection occurs. Threshold *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold,omitempty"` // The % chance that a host is actually ejected. Defaults to 100. Enforcing *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=enforcing,proto3" json:"enforcing,omitempty"` // Error buckets. ErrorBuckets *v3.ErrorBuckets `protobuf:"bytes,4,opt,name=error_buckets,json=errorBuckets,proto3" json:"error_buckets,omitempty"` // contains filtered or unexported fields }
Monitor which counts consecutive errors. If number of consecutive errors exceeds the threshold, monitor will report that the host is unhealthy. [#not-implemented-hide:]
func (*ConsecutiveErrors) Descriptor
deprecated
func (*ConsecutiveErrors) Descriptor() ([]byte, []int)
Deprecated: Use ConsecutiveErrors.ProtoReflect.Descriptor instead.
func (*ConsecutiveErrors) GetEnforcing ¶
func (x *ConsecutiveErrors) GetEnforcing() *wrapperspb.UInt32Value
func (*ConsecutiveErrors) GetErrorBuckets ¶
func (x *ConsecutiveErrors) GetErrorBuckets() *v3.ErrorBuckets
func (*ConsecutiveErrors) GetName ¶
func (x *ConsecutiveErrors) GetName() string
func (*ConsecutiveErrors) GetThreshold ¶
func (x *ConsecutiveErrors) GetThreshold() *wrapperspb.UInt32Value
func (*ConsecutiveErrors) ProtoMessage ¶
func (*ConsecutiveErrors) ProtoMessage()
func (*ConsecutiveErrors) ProtoReflect ¶
func (x *ConsecutiveErrors) ProtoReflect() protoreflect.Message
func (*ConsecutiveErrors) Reset ¶
func (x *ConsecutiveErrors) Reset()
func (*ConsecutiveErrors) String ¶
func (x *ConsecutiveErrors) String() string
func (*ConsecutiveErrors) Validate ¶
func (m *ConsecutiveErrors) Validate() error
Validate checks the field values on ConsecutiveErrors with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConsecutiveErrors) ValidateAll ¶
func (m *ConsecutiveErrors) ValidateAll() error
ValidateAll checks the field values on ConsecutiveErrors with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConsecutiveErrorsMultiError, or nil if none found.
type ConsecutiveErrorsMultiError ¶
type ConsecutiveErrorsMultiError []error
ConsecutiveErrorsMultiError is an error wrapping multiple validation errors returned by ConsecutiveErrors.ValidateAll() if the designated constraints aren't met.
func (ConsecutiveErrorsMultiError) AllErrors ¶
func (m ConsecutiveErrorsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsecutiveErrorsMultiError) Error ¶
func (m ConsecutiveErrorsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsecutiveErrorsValidationError ¶
type ConsecutiveErrorsValidationError struct {
// contains filtered or unexported fields
}
ConsecutiveErrorsValidationError is the validation error returned by ConsecutiveErrors.Validate if the designated constraints aren't met.
func (ConsecutiveErrorsValidationError) Cause ¶
func (e ConsecutiveErrorsValidationError) Cause() error
Cause function returns cause value.
func (ConsecutiveErrorsValidationError) Error ¶
func (e ConsecutiveErrorsValidationError) Error() string
Error satisfies the builtin error interface
func (ConsecutiveErrorsValidationError) ErrorName ¶
func (e ConsecutiveErrorsValidationError) ErrorName() string
ErrorName returns error name.
func (ConsecutiveErrorsValidationError) Field ¶
func (e ConsecutiveErrorsValidationError) Field() string
Field function returns field value.
func (ConsecutiveErrorsValidationError) Key ¶
func (e ConsecutiveErrorsValidationError) Key() bool
Key function returns key value.
func (ConsecutiveErrorsValidationError) Reason ¶
func (e ConsecutiveErrorsValidationError) Reason() string
Reason function returns reason value.