package fixed_heapv3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/resource_monitors/fixed_heap/v3"

Index

Variables

var File_envoy_extensions_resource_monitors_fixed_heap_v3_fixed_heap_proto protoreflect.FileDescriptor

Types

type FixedHeapConfig

type FixedHeapConfig struct {
	MaxHeapSizeBytes uint64 `protobuf:"varint,1,opt,name=max_heap_size_bytes,json=maxHeapSizeBytes,proto3" json:"max_heap_size_bytes,omitempty"`
	// contains filtered or unexported fields
}

The fixed heap resource monitor reports the Envoy process memory pressure, computed as a fraction of currently reserved heap memory divided by a statically configured maximum specified in the FixedHeapConfig.

func (*FixedHeapConfig) Descriptor

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

Deprecated: Use FixedHeapConfig.ProtoReflect.Descriptor instead.

func (*FixedHeapConfig) GetMaxHeapSizeBytes

func (x *FixedHeapConfig) GetMaxHeapSizeBytes() uint64

func (*FixedHeapConfig) ProtoMessage

func (*FixedHeapConfig) ProtoMessage()

func (*FixedHeapConfig) ProtoReflect

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

func (*FixedHeapConfig) Reset

func (x *FixedHeapConfig) Reset()

func (*FixedHeapConfig) String

func (x *FixedHeapConfig) String() string

func (*FixedHeapConfig) Validate

func (m *FixedHeapConfig) Validate() error

Validate checks the field values on FixedHeapConfig 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 (*FixedHeapConfig) ValidateAll

func (m *FixedHeapConfig) ValidateAll() error

ValidateAll checks the field values on FixedHeapConfig 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 FixedHeapConfigMultiError, or nil if none found.

type FixedHeapConfigMultiError

type FixedHeapConfigMultiError []error

FixedHeapConfigMultiError is an error wrapping multiple validation errors returned by FixedHeapConfig.ValidateAll() if the designated constraints aren't met.

func (FixedHeapConfigMultiError) AllErrors

func (m FixedHeapConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FixedHeapConfigMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FixedHeapConfigValidationError

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

FixedHeapConfigValidationError is the validation error returned by FixedHeapConfig.Validate if the designated constraints aren't met.

func (FixedHeapConfigValidationError) Cause

Cause function returns cause value.

func (FixedHeapConfigValidationError) Error

Error satisfies the builtin error interface

func (FixedHeapConfigValidationError) ErrorName

func (e FixedHeapConfigValidationError) ErrorName() string

ErrorName returns error name.

func (FixedHeapConfigValidationError) Field

Field function returns field value.

func (FixedHeapConfigValidationError) Key

Key function returns key value.

func (FixedHeapConfigValidationError) Reason

Reason function returns reason value.

Source Files

fixed_heap.pb.go fixed_heap.pb.validate.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
18 packages
Last checked
1 day ago

Tools for package owners.