Documentation ¶
Index ¶
- Variables
- type Cost
- func (*Cost) Descriptor() ([]byte, []int)deprecated
- func (x *Cost) GetAccount() string
- func (x *Cost) GetBaseCurrency() string
- func (x *Cost) GetCost() float64
- func (x *Cost) GetDate() string
- func (x *Cost) GetGroupId() string
- func (x *Cost) GetRegion() string
- func (x *Cost) GetService() string
- func (x *Cost) GetSku() string
- func (x *Cost) GetUsageAmount() float64
- func (x *Cost) GetUsagePricingAmount() string
- func (x *Cost) GetUsagePricingUnit() float64
- func (x *Cost) GetUsageUnit() string
- func (x *Cost) GetZone() string
- func (*Cost) ProtoMessage()
- func (x *Cost) ProtoReflect() protoreflect.Message
- func (x *Cost) Reset()
- func (x *Cost) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_gcp_cost_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Cost ¶
type Cost struct { // account data Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // The group id the account is associated with during the query. GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"` // For daily data, format is `yyyy-mm-dd`; for monthly, `yyyy-mm`. Date string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` // The service.Description of the lineitem, if applicable. Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` // The sku.Description of the lineitem, if applicable. Sku string `protobuf:"bytes,5,opt,name=sku,proto3" json:"sku,omitempty"` // The location.region of the lineitem, if applicable. Region string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"` // The location.zone of the lineitem, if applicable. Zone string `protobuf:"bytes,7,opt,name=zone,proto3" json:"zone,omitempty"` // The usage.unit of the lineitem, if applicable. UsageUnit string `protobuf:"bytes,8,opt,name=usageUnit,proto3" json:"usageUnit,omitempty"` // The usage.amount of the lineitem, if applicable. UsageAmount float64 `protobuf:"fixed64,9,opt,name=usageAmount,proto3" json:"usageAmount,omitempty"` // The usage.pricing_unit of the lineitem, if applicable. UsagePricingUnit float64 `protobuf:"fixed64,12,opt,name=usagePricingUnit,proto3" json:"usagePricingUnit,omitempty"` // The usage.amount_in_pricing_units of the lineitem, if applicable. UsagePricingAmount string `protobuf:"bytes,13,opt,name=usagePricingAmount,proto3" json:"usagePricingAmount,omitempty"` // The currency of the lineitem, if applicable. BaseCurrency string `protobuf:"bytes,10,opt,name=baseCurrency,proto3" json:"baseCurrency,omitempty"` // The cost of the lineitem, if applicable. Cost float64 `protobuf:"fixed64,11,opt,name=cost,proto3" json:"cost,omitempty"` // contains filtered or unexported fields }
Cost for Api Response
see gcp billing data schema details:[https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables]
func (*Cost) Descriptor
deprecated
func (*Cost) GetAccount ¶
func (*Cost) GetBaseCurrency ¶
func (*Cost) GetGroupId ¶
func (*Cost) GetService ¶
func (*Cost) GetUsageAmount ¶
func (*Cost) GetUsagePricingAmount ¶
func (*Cost) GetUsagePricingUnit ¶
func (*Cost) GetUsageUnit ¶
func (*Cost) ProtoMessage ¶
func (*Cost) ProtoMessage()
func (*Cost) ProtoReflect ¶
func (x *Cost) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.