consecutive_errorsv3

package
v0.0.0-...-cae1a60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

Cause function returns cause value.

func (ConsecutiveErrorsValidationError) Error

Error satisfies the builtin error interface

func (ConsecutiveErrorsValidationError) ErrorName

ErrorName returns error name.

func (ConsecutiveErrorsValidationError) Field

Field function returns field value.

func (ConsecutiveErrorsValidationError) Key

Key function returns key value.

func (ConsecutiveErrorsValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL