modules

package
v1.7.30 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_commons_billing_modules_modules_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BasicAmountConfig

type BasicAmountConfig struct {

	// Required. the amount of a unit to apply the rate to. This is the
	// increment amount; for example, an amount of 300 (with bytes as a
	// unit of measurement) and a message of size 400 bytes will get
	// billed as if it were a size of 600 bytes.
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// Required. the amount to rate each size increment
	Rate float64 `protobuf:"fixed64,2,opt,name=rate,proto3" json:"rate,omitempty"`
	// Optional. the minimum number of increments to rate; for example,
	// an amount of 5 seconds and a min_increment of 2 would mean that
	// any event less than 10 seconds would be billed as if it were 10
	// seconds.
	MinIncrement *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=min_increment,json=minIncrement,proto3" json:"min_increment,omitempty"`
	// Optional. the maximum number of increments to rate; for example,
	// an amount of 5 seconds and a max_increment of 2 would mean that
	// any event more than 10 seconds would be billed as if it were 10
	// seconds.
	MaxIncrement *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=max_increment,json=maxIncrement,proto3" json:"max_increment,omitempty"`
	// contains filtered or unexported fields
}

BasicSizeConfig - basic config for a rating module that rates based on event size

func (*BasicAmountConfig) Descriptor deprecated

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

Deprecated: Use BasicAmountConfig.ProtoReflect.Descriptor instead.

func (*BasicAmountConfig) GetAmount

func (x *BasicAmountConfig) GetAmount() int64

func (*BasicAmountConfig) GetMaxIncrement

func (x *BasicAmountConfig) GetMaxIncrement() *wrapperspb.Int64Value

func (*BasicAmountConfig) GetMinIncrement

func (x *BasicAmountConfig) GetMinIncrement() *wrapperspb.Int64Value

func (*BasicAmountConfig) GetRate

func (x *BasicAmountConfig) GetRate() float64

func (*BasicAmountConfig) ProtoMessage

func (*BasicAmountConfig) ProtoMessage()

func (*BasicAmountConfig) ProtoReflect

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

func (*BasicAmountConfig) Reset

func (x *BasicAmountConfig) Reset()

func (*BasicAmountConfig) String

func (x *BasicAmountConfig) String() string

type BasicConfig

type BasicConfig struct {

	// Required. the amount to rate a single event
	Rate float64 `protobuf:"fixed64,1,opt,name=rate,proto3" json:"rate,omitempty"`
	// contains filtered or unexported fields
}

BasicConfig - basic config for a rating module when there is no other data needed

func (*BasicConfig) Descriptor deprecated

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

Deprecated: Use BasicConfig.ProtoReflect.Descriptor instead.

func (*BasicConfig) GetRate

func (x *BasicConfig) GetRate() float64

func (*BasicConfig) ProtoMessage

func (*BasicConfig) ProtoMessage()

func (*BasicConfig) ProtoReflect

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

func (*BasicConfig) Reset

func (x *BasicConfig) Reset()

func (*BasicConfig) String

func (x *BasicConfig) String() string

Jump to

Keyboard shortcuts

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