overloadv2alpha

package
v1.34.1-20230714202031... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_config_overload_v2alpha_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. If any of these triggers fire the overload action
	// is activated. Listeners are notified when the overload action transitions from
	// inactivated to activated, or vice versa.
	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

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

func (*OverloadAction) Reset

func (x *OverloadAction) Reset()

func (*OverloadAction) String

func (x *OverloadAction) String() string

type OverloadManager

type OverloadManager struct {

	// The interval for refreshing resource usage.
	RefreshInterval *durationpb.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() *durationpb.Duration

func (*OverloadManager) GetResourceMonitors

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

func (*OverloadManager) ProtoMessage

func (*OverloadManager) ProtoMessage()

func (*OverloadManager) ProtoReflect

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

func (*OverloadManager) Reset

func (x *OverloadManager) Reset()

func (*OverloadManager) String

func (x *OverloadManager) String() string

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_Config
	//	*ResourceMonitor_TypedConfig
	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) GetConfig deprecated

func (x *ResourceMonitor) GetConfig() *structpb.Struct

Deprecated: Marked as deprecated in envoy/config/overload/v2alpha/overload.proto.

func (*ResourceMonitor) GetConfigType

func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType

func (*ResourceMonitor) GetName

func (x *ResourceMonitor) GetName() string

func (*ResourceMonitor) GetTypedConfig

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

func (*ResourceMonitor) ProtoMessage

func (*ResourceMonitor) ProtoMessage()

func (*ResourceMonitor) ProtoReflect

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

func (*ResourceMonitor) Reset

func (x *ResourceMonitor) Reset()

func (*ResourceMonitor) String

func (x *ResourceMonitor) String() string

type ResourceMonitor_Config

type ResourceMonitor_Config struct {
	// Deprecated: Marked as deprecated in envoy/config/overload/v2alpha/overload.proto.
	Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type ResourceMonitor_TypedConfig

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

type ThresholdTrigger

type ThresholdTrigger struct {

	// If the resource pressure is greater than or equal to this value, the trigger
	// will fire.
	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

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

func (*ThresholdTrigger) Reset

func (x *ThresholdTrigger) Reset()

func (*ThresholdTrigger) String

func (x *ThresholdTrigger) String() string

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

func (x *Trigger) GetThreshold() *ThresholdTrigger

func (*Trigger) GetTriggerOneof

func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof

func (*Trigger) ProtoMessage

func (*Trigger) ProtoMessage()

func (*Trigger) ProtoReflect

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

func (*Trigger) Reset

func (x *Trigger) Reset()

func (*Trigger) String

func (x *Trigger) String() string

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