proto

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScalingDirection_name = map[int32]string{
		0: "SCALING_DIRECTION_UNSPECIFIED",
		1: "SCALING_DIRECTION_NONE",
		2: "SCALING_DIRECTION_DOWN",
		3: "SCALING_DIRECTION_UP",
	}
	ScalingDirection_value = map[string]int32{
		"SCALING_DIRECTION_UNSPECIFIED": 0,
		"SCALING_DIRECTION_NONE":        1,
		"SCALING_DIRECTION_DOWN":        2,
		"SCALING_DIRECTION_UP":          3,
	}
)

Enum value maps for ScalingDirection.

View Source
var File_plugins_shared_proto_v1_shared_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ScalingAction

type ScalingAction struct {
	Count     int64            `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Reason    string           `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	Error     bool             `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"`
	Direction ScalingDirection `` /* 145-byte string literal not displayed */
	Meta      *any1.Any        `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalingAction) Descriptor deprecated

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

Deprecated: Use ScalingAction.ProtoReflect.Descriptor instead.

func (*ScalingAction) GetCount

func (x *ScalingAction) GetCount() int64

func (*ScalingAction) GetDirection

func (x *ScalingAction) GetDirection() ScalingDirection

func (*ScalingAction) GetError

func (x *ScalingAction) GetError() bool

func (*ScalingAction) GetMeta

func (x *ScalingAction) GetMeta() *any1.Any

func (*ScalingAction) GetReason

func (x *ScalingAction) GetReason() string

func (*ScalingAction) ProtoMessage

func (*ScalingAction) ProtoMessage()

func (*ScalingAction) ProtoReflect

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

func (*ScalingAction) Reset

func (x *ScalingAction) Reset()

func (*ScalingAction) String

func (x *ScalingAction) String() string

type ScalingDirection

type ScalingDirection int32
const (
	ScalingDirection_SCALING_DIRECTION_UNSPECIFIED ScalingDirection = 0
	ScalingDirection_SCALING_DIRECTION_NONE        ScalingDirection = 1
	ScalingDirection_SCALING_DIRECTION_DOWN        ScalingDirection = 2
	ScalingDirection_SCALING_DIRECTION_UP          ScalingDirection = 3
)

func (ScalingDirection) Descriptor

func (ScalingDirection) Enum

func (ScalingDirection) EnumDescriptor deprecated

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

Deprecated: Use ScalingDirection.Descriptor instead.

func (ScalingDirection) Number

func (ScalingDirection) String

func (x ScalingDirection) String() string

func (ScalingDirection) Type

type ScalingPolicyCheck

type ScalingPolicyCheck struct {
	Name        string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Source      string                 `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Query       string                 `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	QueryWindow *duration.Duration     `protobuf:"bytes,4,opt,name=query_window,json=queryWindow,proto3" json:"query_window,omitempty"`
	Strategy    *ScalingPolicyStrategy `protobuf:"bytes,5,opt,name=strategy,proto3" json:"strategy,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalingPolicyCheck) Descriptor deprecated

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

Deprecated: Use ScalingPolicyCheck.ProtoReflect.Descriptor instead.

func (*ScalingPolicyCheck) GetName

func (x *ScalingPolicyCheck) GetName() string

func (*ScalingPolicyCheck) GetQuery

func (x *ScalingPolicyCheck) GetQuery() string

func (*ScalingPolicyCheck) GetQueryWindow

func (x *ScalingPolicyCheck) GetQueryWindow() *duration.Duration

func (*ScalingPolicyCheck) GetSource

func (x *ScalingPolicyCheck) GetSource() string

func (*ScalingPolicyCheck) GetStrategy

func (x *ScalingPolicyCheck) GetStrategy() *ScalingPolicyStrategy

func (*ScalingPolicyCheck) ProtoMessage

func (*ScalingPolicyCheck) ProtoMessage()

func (*ScalingPolicyCheck) ProtoReflect

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

func (*ScalingPolicyCheck) Reset

func (x *ScalingPolicyCheck) Reset()

func (*ScalingPolicyCheck) String

func (x *ScalingPolicyCheck) String() string

type ScalingPolicyStrategy

type ScalingPolicyStrategy struct {
	Name   string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Config map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ScalingPolicyStrategy) Descriptor deprecated

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

Deprecated: Use ScalingPolicyStrategy.ProtoReflect.Descriptor instead.

func (*ScalingPolicyStrategy) GetConfig

func (x *ScalingPolicyStrategy) GetConfig() map[string]string

func (*ScalingPolicyStrategy) GetName

func (x *ScalingPolicyStrategy) GetName() string

func (*ScalingPolicyStrategy) ProtoMessage

func (*ScalingPolicyStrategy) ProtoMessage()

func (*ScalingPolicyStrategy) ProtoReflect

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

func (*ScalingPolicyStrategy) Reset

func (x *ScalingPolicyStrategy) Reset()

func (*ScalingPolicyStrategy) String

func (x *ScalingPolicyStrategy) String() string

type TimeRange

type TimeRange struct {
	To   *timestamp.Timestamp `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	From *timestamp.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeRange) Descriptor deprecated

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

Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.

func (*TimeRange) GetFrom

func (x *TimeRange) GetFrom() *timestamp.Timestamp

func (*TimeRange) GetTo

func (x *TimeRange) GetTo() *timestamp.Timestamp

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) ProtoReflect

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

func (*TimeRange) Reset

func (x *TimeRange) Reset()

func (*TimeRange) String

func (x *TimeRange) String() string

type TimestampedMetric

type TimestampedMetric struct {
	Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Value     float64              `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TimestampedMetric) Descriptor deprecated

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

Deprecated: Use TimestampedMetric.ProtoReflect.Descriptor instead.

func (*TimestampedMetric) GetTimestamp

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

func (*TimestampedMetric) GetValue

func (x *TimestampedMetric) GetValue() float64

func (*TimestampedMetric) ProtoMessage

func (*TimestampedMetric) ProtoMessage()

func (*TimestampedMetric) ProtoReflect

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

func (*TimestampedMetric) Reset

func (x *TimestampedMetric) Reset()

func (*TimestampedMetric) String

func (x *TimestampedMetric) String() string

Jump to

Keyboard shortcuts

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