Documentation ¶
Index ¶
- Variables
- type BillingCloud
- func (BillingCloud) Descriptor() protoreflect.EnumDescriptor
- func (x BillingCloud) Enum() *BillingCloud
- func (BillingCloud) EnumDescriptor() ([]byte, []int)deprecated
- func (x BillingCloud) Number() protoreflect.EnumNumber
- func (x BillingCloud) String() string
- func (BillingCloud) Type() protoreflect.EnumType
- type MachineRate
- func (*MachineRate) Descriptor() ([]byte, []int)deprecated
- func (x *MachineRate) GetCloud() BillingCloud
- func (x *MachineRate) GetCpus() float64
- func (x *MachineRate) GetCreditsPerHour() float64
- func (x *MachineRate) GetMachineFamily() string
- func (x *MachineRate) GetMachineType() string
- func (x *MachineRate) GetMemoryGb() float64
- func (*MachineRate) ProtoMessage()
- func (x *MachineRate) ProtoReflect() protoreflect.Message
- func (x *MachineRate) Reset()
- func (x *MachineRate) String() string
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) Descriptor() protoreflect.EnumDescriptor
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 (x BillingCloud) Number() protoreflect.EnumNumber
func (BillingCloud) String ¶ added in v0.4.7
func (x BillingCloud) String() string
func (BillingCloud) Type ¶ added in v0.4.7
func (BillingCloud) Type() protoreflect.EnumType
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
Click to show internal directories.
Click to hide internal directories.