usagev1

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BillingCloud_name = map[int32]string{
		0: "BILLING_CLOUD_UNSPECIFIED",
		1: "BILLING_CLOUD_AWS",
		2: "BILLING_CLOUD_GCP",
	}
	BillingCloud_value = map[string]int32{
		"BILLING_CLOUD_UNSPECIFIED": 0,
		"BILLING_CLOUD_AWS":         1,
		"BILLING_CLOUD_GCP":         2,
	}
)

Enum value maps for BillingCloud.

View Source
var File_chalk_usage_v1_rate_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BillingCloud added in v0.4.7

type BillingCloud int32

Cloud represents a cloud provider.

const (
	BillingCloud_BILLING_CLOUD_UNSPECIFIED BillingCloud = 0
	BillingCloud_BILLING_CLOUD_AWS         BillingCloud = 1
	BillingCloud_BILLING_CLOUD_GCP         BillingCloud = 2
)

func (BillingCloud) Descriptor added in v0.4.7

func (BillingCloud) Enum added in v0.4.7

func (x BillingCloud) Enum() *BillingCloud

func (BillingCloud) EnumDescriptor deprecated added in v0.4.7

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

Deprecated: Use BillingCloud.Descriptor instead.

func (BillingCloud) Number added in v0.4.7

func (BillingCloud) String added in v0.4.7

func (x BillingCloud) String() string

func (BillingCloud) Type added in v0.4.7

type MachineRate

type MachineRate struct {
	MachineType    string       `protobuf:"bytes,1,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
	Cpus           float64      `protobuf:"fixed64,2,opt,name=cpus,proto3" json:"cpus,omitempty"`
	MemoryGb       float64      `protobuf:"fixed64,3,opt,name=memory_gb,json=memoryGb,proto3" json:"memory_gb,omitempty"`
	CreditsPerHour float64      `protobuf:"fixed64,4,opt,name=credits_per_hour,json=creditsPerHour,proto3" json:"credits_per_hour,omitempty"`
	Cloud          BillingCloud `protobuf:"varint,5,opt,name=cloud,proto3,enum=chalk.usage.v1.BillingCloud" json:"cloud,omitempty"`
	MachineFamily  string       `protobuf:"bytes,6,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineRate) Descriptor deprecated

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

Deprecated: Use MachineRate.ProtoReflect.Descriptor instead.

func (*MachineRate) GetCloud added in v0.4.7

func (x *MachineRate) GetCloud() BillingCloud

func (*MachineRate) GetCpus

func (x *MachineRate) GetCpus() float64

func (*MachineRate) GetCreditsPerHour

func (x *MachineRate) GetCreditsPerHour() float64

func (*MachineRate) GetMachineFamily added in v0.4.7

func (x *MachineRate) GetMachineFamily() string

func (*MachineRate) GetMachineType

func (x *MachineRate) GetMachineType() string

func (*MachineRate) GetMemoryGb

func (x *MachineRate) GetMemoryGb() float64

func (*MachineRate) ProtoMessage

func (*MachineRate) ProtoMessage()

func (*MachineRate) ProtoReflect

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

func (*MachineRate) Reset

func (x *MachineRate) Reset()

func (*MachineRate) String

func (x *MachineRate) String() string

Jump to

Keyboard shortcuts

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