envoy_data_cluster_v2alpha

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Action_name = map[int32]string{
	0: "EJECT",
	1: "UNEJECT",
}
View Source
var Action_value = map[string]int32{
	"EJECT":   0,
	"UNEJECT": 1,
}
View Source
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",
}
View Source
var 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,
}

Functions

This section is empty.

Types

type Action

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) EnumDescriptor

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

func (Action) String

func (x Action) String() string

type OutlierDetectionEvent

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.v2alpha.OutlierEjectionType" json:"type,omitempty"`
	// Timestamp for event.
	Timestamp *types.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 *types.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_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.v2alpha.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 valid to be assigned to Event:
	//	*OutlierDetectionEvent_EjectSuccessRateEvent
	//	*OutlierDetectionEvent_EjectConsecutiveEvent
	//	*OutlierDetectionEvent_EjectFailurePercentageEvent
	Event                isOutlierDetectionEvent_Event `protobuf_oneof:"event"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

[#next-free-field: 12]

func (*OutlierDetectionEvent) Descriptor

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

func (*OutlierDetectionEvent) GetAction

func (m *OutlierDetectionEvent) GetAction() Action

func (*OutlierDetectionEvent) GetClusterName

func (m *OutlierDetectionEvent) GetClusterName() string

func (*OutlierDetectionEvent) GetEjectConsecutiveEvent

func (m *OutlierDetectionEvent) GetEjectConsecutiveEvent() *OutlierEjectConsecutive

func (*OutlierDetectionEvent) GetEjectFailurePercentageEvent

func (m *OutlierDetectionEvent) GetEjectFailurePercentageEvent() *OutlierEjectFailurePercentage

func (*OutlierDetectionEvent) GetEjectSuccessRateEvent

func (m *OutlierDetectionEvent) GetEjectSuccessRateEvent() *OutlierEjectSuccessRate

func (*OutlierDetectionEvent) GetEnforced

func (m *OutlierDetectionEvent) GetEnforced() bool

func (*OutlierDetectionEvent) GetEvent

func (m *OutlierDetectionEvent) GetEvent() isOutlierDetectionEvent_Event

func (*OutlierDetectionEvent) GetNumEjections

func (m *OutlierDetectionEvent) GetNumEjections() uint32

func (*OutlierDetectionEvent) GetSecsSinceLastAction

func (m *OutlierDetectionEvent) GetSecsSinceLastAction() *types.UInt64Value

func (*OutlierDetectionEvent) GetTimestamp

func (m *OutlierDetectionEvent) GetTimestamp() *types.Timestamp

func (*OutlierDetectionEvent) GetType

func (*OutlierDetectionEvent) GetUpstreamUrl

func (m *OutlierDetectionEvent) GetUpstreamUrl() string

func (*OutlierDetectionEvent) ProtoMessage

func (*OutlierDetectionEvent) ProtoMessage()

func (*OutlierDetectionEvent) Reset

func (m *OutlierDetectionEvent) Reset()

func (*OutlierDetectionEvent) String

func (m *OutlierDetectionEvent) String() string

func (*OutlierDetectionEvent) XXX_DiscardUnknown

func (m *OutlierDetectionEvent) XXX_DiscardUnknown()

func (*OutlierDetectionEvent) XXX_Marshal

func (m *OutlierDetectionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutlierDetectionEvent) XXX_Merge

func (m *OutlierDetectionEvent) XXX_Merge(src proto.Message)

func (*OutlierDetectionEvent) XXX_OneofWrappers

func (*OutlierDetectionEvent) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*OutlierDetectionEvent) XXX_Size

func (m *OutlierDetectionEvent) XXX_Size() int

func (*OutlierDetectionEvent) XXX_Unmarshal

func (m *OutlierDetectionEvent) XXX_Unmarshal(b []byte) error

type OutlierDetectionEvent_EjectConsecutiveEvent

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

type OutlierDetectionEvent_EjectFailurePercentageEvent

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

type OutlierDetectionEvent_EjectSuccessRateEvent

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

type OutlierEjectConsecutive

type OutlierEjectConsecutive struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OutlierEjectConsecutive) Descriptor

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

func (*OutlierEjectConsecutive) ProtoMessage

func (*OutlierEjectConsecutive) ProtoMessage()

func (*OutlierEjectConsecutive) Reset

func (m *OutlierEjectConsecutive) Reset()

func (*OutlierEjectConsecutive) String

func (m *OutlierEjectConsecutive) String() string

func (*OutlierEjectConsecutive) XXX_DiscardUnknown

func (m *OutlierEjectConsecutive) XXX_DiscardUnknown()

func (*OutlierEjectConsecutive) XXX_Marshal

func (m *OutlierEjectConsecutive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutlierEjectConsecutive) XXX_Merge

func (m *OutlierEjectConsecutive) XXX_Merge(src proto.Message)

func (*OutlierEjectConsecutive) XXX_Size

func (m *OutlierEjectConsecutive) XXX_Size() int

func (*OutlierEjectConsecutive) XXX_Unmarshal

func (m *OutlierEjectConsecutive) XXX_Unmarshal(b []byte) error

type OutlierEjectFailurePercentage

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OutlierEjectFailurePercentage) Descriptor

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

func (*OutlierEjectFailurePercentage) GetHostSuccessRate

func (m *OutlierEjectFailurePercentage) GetHostSuccessRate() uint32

func (*OutlierEjectFailurePercentage) ProtoMessage

func (*OutlierEjectFailurePercentage) ProtoMessage()

func (*OutlierEjectFailurePercentage) Reset

func (m *OutlierEjectFailurePercentage) Reset()

func (*OutlierEjectFailurePercentage) String

func (*OutlierEjectFailurePercentage) XXX_DiscardUnknown

func (m *OutlierEjectFailurePercentage) XXX_DiscardUnknown()

func (*OutlierEjectFailurePercentage) XXX_Marshal

func (m *OutlierEjectFailurePercentage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutlierEjectFailurePercentage) XXX_Merge

func (m *OutlierEjectFailurePercentage) XXX_Merge(src proto.Message)

func (*OutlierEjectFailurePercentage) XXX_Size

func (m *OutlierEjectFailurePercentage) XXX_Size() int

func (*OutlierEjectFailurePercentage) XXX_Unmarshal

func (m *OutlierEjectFailurePercentage) XXX_Unmarshal(b []byte) error

type OutlierEjectSuccessRate

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 `` /* 141-byte string literal not displayed */
	// Success rate ejection threshold at the time of the ejection event.
	ClusterSuccessRateEjectionThreshold uint32   `` /* 173-byte string literal not displayed */
	XXX_NoUnkeyedLiteral                struct{} `json:"-"`
	XXX_unrecognized                    []byte   `json:"-"`
	XXX_sizecache                       int32    `json:"-"`
}

func (*OutlierEjectSuccessRate) Descriptor

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

func (*OutlierEjectSuccessRate) GetClusterAverageSuccessRate

func (m *OutlierEjectSuccessRate) GetClusterAverageSuccessRate() uint32

func (*OutlierEjectSuccessRate) GetClusterSuccessRateEjectionThreshold

func (m *OutlierEjectSuccessRate) GetClusterSuccessRateEjectionThreshold() uint32

func (*OutlierEjectSuccessRate) GetHostSuccessRate

func (m *OutlierEjectSuccessRate) GetHostSuccessRate() uint32

func (*OutlierEjectSuccessRate) ProtoMessage

func (*OutlierEjectSuccessRate) ProtoMessage()

func (*OutlierEjectSuccessRate) Reset

func (m *OutlierEjectSuccessRate) Reset()

func (*OutlierEjectSuccessRate) String

func (m *OutlierEjectSuccessRate) String() string

func (*OutlierEjectSuccessRate) XXX_DiscardUnknown

func (m *OutlierEjectSuccessRate) XXX_DiscardUnknown()

func (*OutlierEjectSuccessRate) XXX_Marshal

func (m *OutlierEjectSuccessRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutlierEjectSuccessRate) XXX_Merge

func (m *OutlierEjectSuccessRate) XXX_Merge(src proto.Message)

func (*OutlierEjectSuccessRate) XXX_Size

func (m *OutlierEjectSuccessRate) XXX_Size() int

func (*OutlierEjectSuccessRate) XXX_Unmarshal

func (m *OutlierEjectSuccessRate) XXX_Unmarshal(b []byte) error

type OutlierEjectionType

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_cluster.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_cluster.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_cluster.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_cluster.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) EnumDescriptor

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

func (OutlierEjectionType) String

func (x OutlierEjectionType) String() string

Jump to

Keyboard shortcuts

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