go-control-plane: github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3 Index | Files

package envoy_data_cluster_v3

import "github.com/envoyproxy/go-control-plane/envoy/data/cluster/v3"

Index

Package Files

outlier_detection_event.pb.go outlier_detection_event.pb.validate.go

Variables

var (
    OutlierEjectionType_name = map[int32]string{
        0:  "CONSECUTIVE_5XX",
        1:  "CONSECUTIVE_GATEWAY_FAILURE",
        2:  "SUCCESS_RATE",
        3:  "CONSECUTIVE_LOCAL_ORIGIN_FAILURE",
        4:  "SUCCESS_RATE_LOCAL_ORIGIN",
        5:  "FAILURE_PERCENTAGE",
        6:  "FAILURE_PERCENTAGE_LOCAL_ORIGIN",
    }
    OutlierEjectionType_value = map[string]int32{
        "CONSECUTIVE_5XX":                  0,
        "CONSECUTIVE_GATEWAY_FAILURE":      1,
        "SUCCESS_RATE":                     2,
        "CONSECUTIVE_LOCAL_ORIGIN_FAILURE": 3,
        "SUCCESS_RATE_LOCAL_ORIGIN":        4,
        "FAILURE_PERCENTAGE":               5,
        "FAILURE_PERCENTAGE_LOCAL_ORIGIN":  6,
    }
)

Enum value maps for OutlierEjectionType.

var (
    Action_name = map[int32]string{
        0:  "EJECT",
        1:  "UNEJECT",
    }
    Action_value = map[string]int32{
        "EJECT":   0,
        "UNEJECT": 1,
    }
)

Enum value maps for Action.

var File_envoy_data_cluster_v3_outlier_detection_event_proto protoreflect.FileDescriptor

type Action Uses

type Action int32

Represents possible action applied to upstream host

const (
    // In case host was excluded from service
    Action_EJECT Action = 0
    // In case host was brought back into service
    Action_UNEJECT Action = 1
)

func (Action) Descriptor Uses

func (Action) Descriptor() protoreflect.EnumDescriptor

func (Action) Enum Uses

func (x Action) Enum() *Action

func (Action) EnumDescriptor Uses

func (Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Action.Descriptor instead.

func (Action) Number Uses

func (x Action) Number() protoreflect.EnumNumber

func (Action) String Uses

func (x Action) String() string

func (Action) Type Uses

func (Action) Type() protoreflect.EnumType

type OutlierDetectionEvent Uses

type OutlierDetectionEvent struct {

    // In case of eject represents type of ejection that took place.
    Type OutlierEjectionType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.data.cluster.v3.OutlierEjectionType" json:"type,omitempty"`
    // Timestamp for event.
    Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    // The time in seconds since the last action (either an ejection or unejection) took place.
    SecsSinceLastAction *wrappers.UInt64Value `protobuf:"bytes,3,opt,name=secs_since_last_action,json=secsSinceLastAction,proto3" json:"secs_since_last_action,omitempty"`
    // The :ref:`cluster <envoy_api_msg_config.cluster.v3.Cluster>` that owns the ejected host.
    ClusterName string `protobuf:"bytes,4,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
    // The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
    UpstreamUrl string `protobuf:"bytes,5,opt,name=upstream_url,json=upstreamUrl,proto3" json:"upstream_url,omitempty"`
    // The action that took place.
    Action Action `protobuf:"varint,6,opt,name=action,proto3,enum=envoy.data.cluster.v3.Action" json:"action,omitempty"`
    // If ``action`` is ``eject``, specifies the number of times the host has been ejected (local to
    // that Envoy and gets reset if the host gets removed from the upstream cluster for any reason and
    // then re-added).
    NumEjections uint32 `protobuf:"varint,7,opt,name=num_ejections,json=numEjections,proto3" json:"num_ejections,omitempty"`
    // If ``action`` is ``eject``, specifies if the ejection was enforced. ``true`` means the host was
    // ejected. ``false`` means the event was logged but the host was not actually ejected.
    Enforced bool `protobuf:"varint,8,opt,name=enforced,proto3" json:"enforced,omitempty"`
    // Types that are assignable to Event:
    //	*OutlierDetectionEvent_EjectSuccessRateEvent
    //	*OutlierDetectionEvent_EjectConsecutiveEvent
    //	*OutlierDetectionEvent_EjectFailurePercentageEvent
    Event isOutlierDetectionEvent_Event `protobuf_oneof:"event"`
    // contains filtered or unexported fields
}

[#next-free-field: 12]

func (*OutlierDetectionEvent) Descriptor Uses

func (*OutlierDetectionEvent) Descriptor() ([]byte, []int)

Deprecated: Use OutlierDetectionEvent.ProtoReflect.Descriptor instead.

func (*OutlierDetectionEvent) GetAction Uses

func (x *OutlierDetectionEvent) GetAction() Action

func (*OutlierDetectionEvent) GetClusterName Uses

func (x *OutlierDetectionEvent) GetClusterName() string

func (*OutlierDetectionEvent) GetEjectConsecutiveEvent Uses

func (x *OutlierDetectionEvent) GetEjectConsecutiveEvent() *OutlierEjectConsecutive

func (*OutlierDetectionEvent) GetEjectFailurePercentageEvent Uses

func (x *OutlierDetectionEvent) GetEjectFailurePercentageEvent() *OutlierEjectFailurePercentage

func (*OutlierDetectionEvent) GetEjectSuccessRateEvent Uses

func (x *OutlierDetectionEvent) GetEjectSuccessRateEvent() *OutlierEjectSuccessRate

func (*OutlierDetectionEvent) GetEnforced Uses

func (x *OutlierDetectionEvent) GetEnforced() bool

func (*OutlierDetectionEvent) GetEvent Uses

func (m *OutlierDetectionEvent) GetEvent() isOutlierDetectionEvent_Event

func (*OutlierDetectionEvent) GetNumEjections Uses

func (x *OutlierDetectionEvent) GetNumEjections() uint32

func (*OutlierDetectionEvent) GetSecsSinceLastAction Uses

func (x *OutlierDetectionEvent) GetSecsSinceLastAction() *wrappers.UInt64Value

func (*OutlierDetectionEvent) GetTimestamp Uses

func (x *OutlierDetectionEvent) GetTimestamp() *timestamp.Timestamp

func (*OutlierDetectionEvent) GetType Uses

func (x *OutlierDetectionEvent) GetType() OutlierEjectionType

func (*OutlierDetectionEvent) GetUpstreamUrl Uses

func (x *OutlierDetectionEvent) GetUpstreamUrl() string

func (*OutlierDetectionEvent) ProtoMessage Uses

func (*OutlierDetectionEvent) ProtoMessage()

func (*OutlierDetectionEvent) ProtoReflect Uses

func (x *OutlierDetectionEvent) ProtoReflect() protoreflect.Message

func (*OutlierDetectionEvent) Reset Uses

func (x *OutlierDetectionEvent) Reset()

func (*OutlierDetectionEvent) String Uses

func (x *OutlierDetectionEvent) String() string

func (*OutlierDetectionEvent) Validate Uses

func (m *OutlierDetectionEvent) Validate() error

Validate checks the field values on OutlierDetectionEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OutlierDetectionEventValidationError Uses

type OutlierDetectionEventValidationError struct {
    // contains filtered or unexported fields
}

OutlierDetectionEventValidationError is the validation error returned by OutlierDetectionEvent.Validate if the designated constraints aren't met.

func (OutlierDetectionEventValidationError) Cause Uses

func (e OutlierDetectionEventValidationError) Cause() error

Cause function returns cause value.

func (OutlierDetectionEventValidationError) Error Uses

func (e OutlierDetectionEventValidationError) Error() string

Error satisfies the builtin error interface

func (OutlierDetectionEventValidationError) ErrorName Uses

func (e OutlierDetectionEventValidationError) ErrorName() string

ErrorName returns error name.

func (OutlierDetectionEventValidationError) Field Uses

func (e OutlierDetectionEventValidationError) Field() string

Field function returns field value.

func (OutlierDetectionEventValidationError) Key Uses

func (e OutlierDetectionEventValidationError) Key() bool

Key function returns key value.

func (OutlierDetectionEventValidationError) Reason Uses

func (e OutlierDetectionEventValidationError) Reason() string

Reason function returns reason value.

type OutlierDetectionEvent_EjectConsecutiveEvent Uses

type OutlierDetectionEvent_EjectConsecutiveEvent struct {
    EjectConsecutiveEvent *OutlierEjectConsecutive `protobuf:"bytes,10,opt,name=eject_consecutive_event,json=ejectConsecutiveEvent,proto3,oneof"`
}

type OutlierDetectionEvent_EjectFailurePercentageEvent Uses

type OutlierDetectionEvent_EjectFailurePercentageEvent struct {
    EjectFailurePercentageEvent *OutlierEjectFailurePercentage `protobuf:"bytes,11,opt,name=eject_failure_percentage_event,json=ejectFailurePercentageEvent,proto3,oneof"`
}

type OutlierDetectionEvent_EjectSuccessRateEvent Uses

type OutlierDetectionEvent_EjectSuccessRateEvent struct {
    EjectSuccessRateEvent *OutlierEjectSuccessRate `protobuf:"bytes,9,opt,name=eject_success_rate_event,json=ejectSuccessRateEvent,proto3,oneof"`
}

type OutlierEjectConsecutive Uses

type OutlierEjectConsecutive struct {
    // contains filtered or unexported fields
}

func (*OutlierEjectConsecutive) Descriptor Uses

func (*OutlierEjectConsecutive) Descriptor() ([]byte, []int)

Deprecated: Use OutlierEjectConsecutive.ProtoReflect.Descriptor instead.

func (*OutlierEjectConsecutive) ProtoMessage Uses

func (*OutlierEjectConsecutive) ProtoMessage()

func (*OutlierEjectConsecutive) ProtoReflect Uses

func (x *OutlierEjectConsecutive) ProtoReflect() protoreflect.Message

func (*OutlierEjectConsecutive) Reset Uses

func (x *OutlierEjectConsecutive) Reset()

func (*OutlierEjectConsecutive) String Uses

func (x *OutlierEjectConsecutive) String() string

func (*OutlierEjectConsecutive) Validate Uses

func (m *OutlierEjectConsecutive) Validate() error

Validate checks the field values on OutlierEjectConsecutive with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OutlierEjectConsecutiveValidationError Uses

type OutlierEjectConsecutiveValidationError struct {
    // contains filtered or unexported fields
}

OutlierEjectConsecutiveValidationError is the validation error returned by OutlierEjectConsecutive.Validate if the designated constraints aren't met.

func (OutlierEjectConsecutiveValidationError) Cause Uses

func (e OutlierEjectConsecutiveValidationError) Cause() error

Cause function returns cause value.

func (OutlierEjectConsecutiveValidationError) Error Uses

func (e OutlierEjectConsecutiveValidationError) Error() string

Error satisfies the builtin error interface

func (OutlierEjectConsecutiveValidationError) ErrorName Uses

func (e OutlierEjectConsecutiveValidationError) ErrorName() string

ErrorName returns error name.

func (OutlierEjectConsecutiveValidationError) Field Uses

func (e OutlierEjectConsecutiveValidationError) Field() string

Field function returns field value.

func (OutlierEjectConsecutiveValidationError) Key Uses

func (e OutlierEjectConsecutiveValidationError) Key() bool

Key function returns key value.

func (OutlierEjectConsecutiveValidationError) Reason Uses

func (e OutlierEjectConsecutiveValidationError) Reason() string

Reason function returns reason value.

type OutlierEjectFailurePercentage Uses

type OutlierEjectFailurePercentage struct {

    // Host's success rate at the time of the ejection event on a 0-100 range.
    HostSuccessRate uint32 `protobuf:"varint,1,opt,name=host_success_rate,json=hostSuccessRate,proto3" json:"host_success_rate,omitempty"`
    // contains filtered or unexported fields
}

func (*OutlierEjectFailurePercentage) Descriptor Uses

func (*OutlierEjectFailurePercentage) Descriptor() ([]byte, []int)

Deprecated: Use OutlierEjectFailurePercentage.ProtoReflect.Descriptor instead.

func (*OutlierEjectFailurePercentage) GetHostSuccessRate Uses

func (x *OutlierEjectFailurePercentage) GetHostSuccessRate() uint32

func (*OutlierEjectFailurePercentage) ProtoMessage Uses

func (*OutlierEjectFailurePercentage) ProtoMessage()

func (*OutlierEjectFailurePercentage) ProtoReflect Uses

func (x *OutlierEjectFailurePercentage) ProtoReflect() protoreflect.Message

func (*OutlierEjectFailurePercentage) Reset Uses

func (x *OutlierEjectFailurePercentage) Reset()

func (*OutlierEjectFailurePercentage) String Uses

func (x *OutlierEjectFailurePercentage) String() string

func (*OutlierEjectFailurePercentage) Validate Uses

func (m *OutlierEjectFailurePercentage) Validate() error

Validate checks the field values on OutlierEjectFailurePercentage with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OutlierEjectFailurePercentageValidationError Uses

type OutlierEjectFailurePercentageValidationError struct {
    // contains filtered or unexported fields
}

OutlierEjectFailurePercentageValidationError is the validation error returned by OutlierEjectFailurePercentage.Validate if the designated constraints aren't met.

func (OutlierEjectFailurePercentageValidationError) Cause Uses

func (e OutlierEjectFailurePercentageValidationError) Cause() error

Cause function returns cause value.

func (OutlierEjectFailurePercentageValidationError) Error Uses

func (e OutlierEjectFailurePercentageValidationError) Error() string

Error satisfies the builtin error interface

func (OutlierEjectFailurePercentageValidationError) ErrorName Uses

func (e OutlierEjectFailurePercentageValidationError) ErrorName() string

ErrorName returns error name.

func (OutlierEjectFailurePercentageValidationError) Field Uses

func (e OutlierEjectFailurePercentageValidationError) Field() string

Field function returns field value.

func (OutlierEjectFailurePercentageValidationError) Key Uses

func (e OutlierEjectFailurePercentageValidationError) Key() bool

Key function returns key value.

func (OutlierEjectFailurePercentageValidationError) Reason Uses

func (e OutlierEjectFailurePercentageValidationError) Reason() string

Reason function returns reason value.

type OutlierEjectSuccessRate Uses

type OutlierEjectSuccessRate struct {

    // Host’s success rate at the time of the ejection event on a 0-100 range.
    HostSuccessRate uint32 `protobuf:"varint,1,opt,name=host_success_rate,json=hostSuccessRate,proto3" json:"host_success_rate,omitempty"`
    // Average success rate of the hosts in the cluster at the time of the ejection event on a 0-100
    // range.
    ClusterAverageSuccessRate uint32 `protobuf:"varint,2,opt,name=cluster_average_success_rate,json=clusterAverageSuccessRate,proto3" json:"cluster_average_success_rate,omitempty"`
    // Success rate ejection threshold at the time of the ejection event.
    ClusterSuccessRateEjectionThreshold uint32 `protobuf:"varint,3,opt,name=cluster_success_rate_ejection_threshold,json=clusterSuccessRateEjectionThreshold,proto3" json:"cluster_success_rate_ejection_threshold,omitempty"`
    // contains filtered or unexported fields
}

func (*OutlierEjectSuccessRate) Descriptor Uses

func (*OutlierEjectSuccessRate) Descriptor() ([]byte, []int)

Deprecated: Use OutlierEjectSuccessRate.ProtoReflect.Descriptor instead.

func (*OutlierEjectSuccessRate) GetClusterAverageSuccessRate Uses

func (x *OutlierEjectSuccessRate) GetClusterAverageSuccessRate() uint32

func (*OutlierEjectSuccessRate) GetClusterSuccessRateEjectionThreshold Uses

func (x *OutlierEjectSuccessRate) GetClusterSuccessRateEjectionThreshold() uint32

func (*OutlierEjectSuccessRate) GetHostSuccessRate Uses

func (x *OutlierEjectSuccessRate) GetHostSuccessRate() uint32

func (*OutlierEjectSuccessRate) ProtoMessage Uses

func (*OutlierEjectSuccessRate) ProtoMessage()

func (*OutlierEjectSuccessRate) ProtoReflect Uses

func (x *OutlierEjectSuccessRate) ProtoReflect() protoreflect.Message

func (*OutlierEjectSuccessRate) Reset Uses

func (x *OutlierEjectSuccessRate) Reset()

func (*OutlierEjectSuccessRate) String Uses

func (x *OutlierEjectSuccessRate) String() string

func (*OutlierEjectSuccessRate) Validate Uses

func (m *OutlierEjectSuccessRate) Validate() error

Validate checks the field values on OutlierEjectSuccessRate with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OutlierEjectSuccessRateValidationError Uses

type OutlierEjectSuccessRateValidationError struct {
    // contains filtered or unexported fields
}

OutlierEjectSuccessRateValidationError is the validation error returned by OutlierEjectSuccessRate.Validate if the designated constraints aren't met.

func (OutlierEjectSuccessRateValidationError) Cause Uses

func (e OutlierEjectSuccessRateValidationError) Cause() error

Cause function returns cause value.

func (OutlierEjectSuccessRateValidationError) Error Uses

func (e OutlierEjectSuccessRateValidationError) Error() string

Error satisfies the builtin error interface

func (OutlierEjectSuccessRateValidationError) ErrorName Uses

func (e OutlierEjectSuccessRateValidationError) ErrorName() string

ErrorName returns error name.

func (OutlierEjectSuccessRateValidationError) Field Uses

func (e OutlierEjectSuccessRateValidationError) Field() string

Field function returns field value.

func (OutlierEjectSuccessRateValidationError) Key Uses

func (e OutlierEjectSuccessRateValidationError) Key() bool

Key function returns key value.

func (OutlierEjectSuccessRateValidationError) Reason Uses

func (e OutlierEjectSuccessRateValidationError) Reason() string

Reason function returns reason value.

type OutlierEjectionType Uses

type OutlierEjectionType int32

Type of ejection that took place

const (
    // In case upstream host returns certain number of consecutive 5xx.
    // If
    // :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    // is *false*, all type of errors are treated as HTTP 5xx errors.
    // See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
    // details.
    OutlierEjectionType_CONSECUTIVE_5XX OutlierEjectionType = 0
    // In case upstream host returns certain number of consecutive gateway errors
    OutlierEjectionType_CONSECUTIVE_GATEWAY_FAILURE OutlierEjectionType = 1
    // Runs over aggregated success rate statistics from every host in cluster
    // and selects hosts for which ratio of successful replies deviates from other hosts
    // in the cluster.
    // If
    // :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    // is *false*, all errors (externally and locally generated) are used to calculate success rate
    // statistics. See :ref:`Cluster outlier detection <arch_overview_outlier_detection>`
    // documentation for details.
    OutlierEjectionType_SUCCESS_RATE OutlierEjectionType = 2
    // Consecutive local origin failures: Connection failures, resets, timeouts, etc
    // This type of ejection happens only when
    // :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    // is set to *true*.
    // See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
    OutlierEjectionType_CONSECUTIVE_LOCAL_ORIGIN_FAILURE OutlierEjectionType = 3
    // Runs over aggregated success rate statistics for local origin failures
    // for all hosts in the cluster and selects hosts for which success rate deviates from other
    // hosts in the cluster. This type of ejection happens only when
    // :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
    // is set to *true*.
    // See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
    OutlierEjectionType_SUCCESS_RATE_LOCAL_ORIGIN OutlierEjectionType = 4
    // Runs over aggregated success rate statistics from every host in cluster and selects hosts for
    // which ratio of failed replies is above configured value.
    OutlierEjectionType_FAILURE_PERCENTAGE OutlierEjectionType = 5
    // Runs over aggregated success rate statistics for local origin failures from every host in
    // cluster and selects hosts for which ratio of failed replies is above configured value.
    OutlierEjectionType_FAILURE_PERCENTAGE_LOCAL_ORIGIN OutlierEjectionType = 6
)

func (OutlierEjectionType) Descriptor Uses

func (OutlierEjectionType) Descriptor() protoreflect.EnumDescriptor

func (OutlierEjectionType) Enum Uses

func (x OutlierEjectionType) Enum() *OutlierEjectionType

func (OutlierEjectionType) EnumDescriptor Uses

func (OutlierEjectionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutlierEjectionType.Descriptor instead.

func (OutlierEjectionType) Number Uses

func (x OutlierEjectionType) Number() protoreflect.EnumNumber

func (OutlierEjectionType) String Uses

func (x OutlierEjectionType) String() string

func (OutlierEjectionType) Type Uses

func (OutlierEjectionType) Type() protoreflect.EnumType

Package envoy_data_cluster_v3 imports 20 packages (graph) and is imported by 6 packages. Updated 2021-01-07. Refresh now. Tools for package owners.