envoy_config_overload_v3

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 21 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_config_overload_v3_overload_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OverloadAction

type OverloadAction struct {

	// The name of the overload action. This is just a well-known string that listeners can
	// use for registering callbacks. Custom overload actions should be named using reverse
	// DNS to ensure uniqueness.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A set of triggers for this action. The state of the action is the maximum
	// state of all triggers, which can be scaling between 0 and 1 or saturated. Listeners
	// are notified when the overload action changes state.
	Triggers []*Trigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"`
	// contains filtered or unexported fields
}

func (*OverloadAction) Descriptor deprecated

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

Deprecated: Use OverloadAction.ProtoReflect.Descriptor instead.

func (*OverloadAction) GetName

func (x *OverloadAction) GetName() string

func (*OverloadAction) GetTriggers

func (x *OverloadAction) GetTriggers() []*Trigger

func (*OverloadAction) ProtoMessage

func (*OverloadAction) ProtoMessage()

func (*OverloadAction) ProtoReflect added in v0.9.6

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

func (*OverloadAction) Reset

func (x *OverloadAction) Reset()

func (*OverloadAction) String

func (x *OverloadAction) String() string

func (*OverloadAction) Validate

func (m *OverloadAction) Validate() error

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

type OverloadActionValidationError

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

OverloadActionValidationError is the validation error returned by OverloadAction.Validate if the designated constraints aren't met.

func (OverloadActionValidationError) Cause

Cause function returns cause value.

func (OverloadActionValidationError) Error

Error satisfies the builtin error interface

func (OverloadActionValidationError) ErrorName

func (e OverloadActionValidationError) ErrorName() string

ErrorName returns error name.

func (OverloadActionValidationError) Field

Field function returns field value.

func (OverloadActionValidationError) Key

Key function returns key value.

func (OverloadActionValidationError) Reason

Reason function returns reason value.

type OverloadManager

type OverloadManager struct {

	// The interval for refreshing resource usage.
	RefreshInterval *duration.Duration `protobuf:"bytes,1,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
	// The set of resources to monitor.
	ResourceMonitors []*ResourceMonitor `protobuf:"bytes,2,rep,name=resource_monitors,json=resourceMonitors,proto3" json:"resource_monitors,omitempty"`
	// The set of overload actions.
	Actions []*OverloadAction `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*OverloadManager) Descriptor deprecated

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

Deprecated: Use OverloadManager.ProtoReflect.Descriptor instead.

func (*OverloadManager) GetActions

func (x *OverloadManager) GetActions() []*OverloadAction

func (*OverloadManager) GetRefreshInterval

func (x *OverloadManager) GetRefreshInterval() *duration.Duration

func (*OverloadManager) GetResourceMonitors

func (x *OverloadManager) GetResourceMonitors() []*ResourceMonitor

func (*OverloadManager) ProtoMessage

func (*OverloadManager) ProtoMessage()

func (*OverloadManager) ProtoReflect added in v0.9.6

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

func (*OverloadManager) Reset

func (x *OverloadManager) Reset()

func (*OverloadManager) String

func (x *OverloadManager) String() string

func (*OverloadManager) Validate

func (m *OverloadManager) Validate() error

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

type OverloadManagerValidationError

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

OverloadManagerValidationError is the validation error returned by OverloadManager.Validate if the designated constraints aren't met.

func (OverloadManagerValidationError) Cause

Cause function returns cause value.

func (OverloadManagerValidationError) Error

Error satisfies the builtin error interface

func (OverloadManagerValidationError) ErrorName

func (e OverloadManagerValidationError) ErrorName() string

ErrorName returns error name.

func (OverloadManagerValidationError) Field

Field function returns field value.

func (OverloadManagerValidationError) Key

Key function returns key value.

func (OverloadManagerValidationError) Reason

Reason function returns reason value.

type ResourceMonitor

type ResourceMonitor struct {

	// The name of the resource monitor to instantiate. Must match a registered
	// resource monitor type. The built-in resource monitors are:
	//
	// * :ref:`envoy.resource_monitors.fixed_heap
	//   <envoy_api_msg_config.resource_monitor.fixed_heap.v2alpha.FixedHeapConfig>`
	// * :ref:`envoy.resource_monitors.injected_resource
	//   <envoy_api_msg_config.resource_monitor.injected_resource.v2alpha.InjectedResourceConfig>`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Configuration for the resource monitor being instantiated.
	//
	// Types that are assignable to ConfigType:
	//	*ResourceMonitor_TypedConfig
	//	*ResourceMonitor_HiddenEnvoyDeprecatedConfig
	ConfigType isResourceMonitor_ConfigType `protobuf_oneof:"config_type"`
	// contains filtered or unexported fields
}

func (*ResourceMonitor) Descriptor deprecated

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

Deprecated: Use ResourceMonitor.ProtoReflect.Descriptor instead.

func (*ResourceMonitor) GetConfigType

func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType

func (*ResourceMonitor) GetHiddenEnvoyDeprecatedConfig deprecated

func (x *ResourceMonitor) GetHiddenEnvoyDeprecatedConfig() *_struct.Struct

Deprecated: Do not use.

func (*ResourceMonitor) GetName

func (x *ResourceMonitor) GetName() string

func (*ResourceMonitor) GetTypedConfig

func (x *ResourceMonitor) GetTypedConfig() *any.Any

func (*ResourceMonitor) ProtoMessage

func (*ResourceMonitor) ProtoMessage()

func (*ResourceMonitor) ProtoReflect added in v0.9.6

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

func (*ResourceMonitor) Reset

func (x *ResourceMonitor) Reset()

func (*ResourceMonitor) String

func (x *ResourceMonitor) String() string

func (*ResourceMonitor) Validate

func (m *ResourceMonitor) Validate() error

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

type ResourceMonitorValidationError

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

ResourceMonitorValidationError is the validation error returned by ResourceMonitor.Validate if the designated constraints aren't met.

func (ResourceMonitorValidationError) Cause

Cause function returns cause value.

func (ResourceMonitorValidationError) Error

Error satisfies the builtin error interface

func (ResourceMonitorValidationError) ErrorName

func (e ResourceMonitorValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceMonitorValidationError) Field

Field function returns field value.

func (ResourceMonitorValidationError) Key

Key function returns key value.

func (ResourceMonitorValidationError) Reason

Reason function returns reason value.

type ResourceMonitor_HiddenEnvoyDeprecatedConfig

type ResourceMonitor_HiddenEnvoyDeprecatedConfig struct {
	// Deprecated: Do not use.
	HiddenEnvoyDeprecatedConfig *_struct.Struct `protobuf:"bytes,2,opt,name=hidden_envoy_deprecated_config,json=hiddenEnvoyDeprecatedConfig,proto3,oneof"`
}

type ResourceMonitor_TypedConfig

type ResourceMonitor_TypedConfig struct {
	TypedConfig *any.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

type ScaledTrigger added in v0.9.7

type ScaledTrigger struct {

	// If the resource pressure is greater than this value, the trigger will be in the
	// :ref:`scaling <arch_overview_overload_manager-triggers-state>` state with value
	// `(pressure - scaling_threshold) / (saturation_threshold - scaling_threshold)`.
	ScalingThreshold float64 `protobuf:"fixed64,1,opt,name=scaling_threshold,json=scalingThreshold,proto3" json:"scaling_threshold,omitempty"`
	// If the resource pressure is greater than this value, the trigger will enter saturation.
	SaturationThreshold float64 `protobuf:"fixed64,2,opt,name=saturation_threshold,json=saturationThreshold,proto3" json:"saturation_threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*ScaledTrigger) Descriptor deprecated added in v0.9.7

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

Deprecated: Use ScaledTrigger.ProtoReflect.Descriptor instead.

func (*ScaledTrigger) GetSaturationThreshold added in v0.9.7

func (x *ScaledTrigger) GetSaturationThreshold() float64

func (*ScaledTrigger) GetScalingThreshold added in v0.9.7

func (x *ScaledTrigger) GetScalingThreshold() float64

func (*ScaledTrigger) ProtoMessage added in v0.9.7

func (*ScaledTrigger) ProtoMessage()

func (*ScaledTrigger) ProtoReflect added in v0.9.7

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

func (*ScaledTrigger) Reset added in v0.9.7

func (x *ScaledTrigger) Reset()

func (*ScaledTrigger) String added in v0.9.7

func (x *ScaledTrigger) String() string

func (*ScaledTrigger) Validate added in v0.9.7

func (m *ScaledTrigger) Validate() error

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

type ScaledTriggerValidationError added in v0.9.7

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

ScaledTriggerValidationError is the validation error returned by ScaledTrigger.Validate if the designated constraints aren't met.

func (ScaledTriggerValidationError) Cause added in v0.9.7

Cause function returns cause value.

func (ScaledTriggerValidationError) Error added in v0.9.7

Error satisfies the builtin error interface

func (ScaledTriggerValidationError) ErrorName added in v0.9.7

func (e ScaledTriggerValidationError) ErrorName() string

ErrorName returns error name.

func (ScaledTriggerValidationError) Field added in v0.9.7

Field function returns field value.

func (ScaledTriggerValidationError) Key added in v0.9.7

Key function returns key value.

func (ScaledTriggerValidationError) Reason added in v0.9.7

Reason function returns reason value.

type ThresholdTrigger

type ThresholdTrigger struct {

	// If the resource pressure is greater than or equal to this value, the trigger
	// will enter saturation.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ThresholdTrigger) Descriptor deprecated

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

Deprecated: Use ThresholdTrigger.ProtoReflect.Descriptor instead.

func (*ThresholdTrigger) GetValue

func (x *ThresholdTrigger) GetValue() float64

func (*ThresholdTrigger) ProtoMessage

func (*ThresholdTrigger) ProtoMessage()

func (*ThresholdTrigger) ProtoReflect added in v0.9.6

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

func (*ThresholdTrigger) Reset

func (x *ThresholdTrigger) Reset()

func (*ThresholdTrigger) String

func (x *ThresholdTrigger) String() string

func (*ThresholdTrigger) Validate

func (m *ThresholdTrigger) Validate() error

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

type ThresholdTriggerValidationError

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

ThresholdTriggerValidationError is the validation error returned by ThresholdTrigger.Validate if the designated constraints aren't met.

func (ThresholdTriggerValidationError) Cause

Cause function returns cause value.

func (ThresholdTriggerValidationError) Error

Error satisfies the builtin error interface

func (ThresholdTriggerValidationError) ErrorName

ErrorName returns error name.

func (ThresholdTriggerValidationError) Field

Field function returns field value.

func (ThresholdTriggerValidationError) Key

Key function returns key value.

func (ThresholdTriggerValidationError) Reason

Reason function returns reason value.

type Trigger

type Trigger struct {

	// The name of the resource this is a trigger for.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to TriggerOneof:
	//	*Trigger_Threshold
	//	*Trigger_Scaled
	TriggerOneof isTrigger_TriggerOneof `protobuf_oneof:"trigger_oneof"`
	// contains filtered or unexported fields
}

func (*Trigger) Descriptor deprecated

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

Deprecated: Use Trigger.ProtoReflect.Descriptor instead.

func (*Trigger) GetName

func (x *Trigger) GetName() string

func (*Trigger) GetScaled added in v0.9.7

func (x *Trigger) GetScaled() *ScaledTrigger

func (*Trigger) GetThreshold

func (x *Trigger) GetThreshold() *ThresholdTrigger

func (*Trigger) GetTriggerOneof

func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof

func (*Trigger) ProtoMessage

func (*Trigger) ProtoMessage()

func (*Trigger) ProtoReflect added in v0.9.6

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

func (*Trigger) Reset

func (x *Trigger) Reset()

func (*Trigger) String

func (x *Trigger) String() string

func (*Trigger) Validate

func (m *Trigger) Validate() error

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

type TriggerValidationError

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

TriggerValidationError is the validation error returned by Trigger.Validate if the designated constraints aren't met.

func (TriggerValidationError) Cause

func (e TriggerValidationError) Cause() error

Cause function returns cause value.

func (TriggerValidationError) Error

func (e TriggerValidationError) Error() string

Error satisfies the builtin error interface

func (TriggerValidationError) ErrorName

func (e TriggerValidationError) ErrorName() string

ErrorName returns error name.

func (TriggerValidationError) Field

func (e TriggerValidationError) Field() string

Field function returns field value.

func (TriggerValidationError) Key

func (e TriggerValidationError) Key() bool

Key function returns key value.

func (TriggerValidationError) Reason

func (e TriggerValidationError) Reason() string

Reason function returns reason value.

type Trigger_Scaled added in v0.9.7

type Trigger_Scaled struct {
	Scaled *ScaledTrigger `protobuf:"bytes,3,opt,name=scaled,proto3,oneof"`
}

type Trigger_Threshold

type Trigger_Threshold struct {
	Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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