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) GetCreditsName() string
- func (x *Cost) GetCreditsType() string
- func (x *Cost) GetDate() string
- func (x *Cost) GetGroupId() string
- func (x *Cost) GetInvoiceMonth() string
- func (x *Cost) GetRegion() string
- func (x *Cost) GetService() string
- func (x *Cost) GetSku() string
- func (x *Cost) GetUsageAmount() 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 invoice.month of the lineitem, if applicable. InvoiceMonth string `protobuf:"bytes,12,opt,name=invoiceMonth,proto3" json:"invoiceMonth,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 credits.type of the lineitem, if applicable. CreditsType string `protobuf:"bytes,13,opt,name=creditsType,proto3" json:"creditsType,omitempty"` // The credits.name of the lineitem, if applicable. CreditsName string `protobuf:"bytes,14,opt,name=creditsName,proto3" json:"creditsName,omitempty"` // The usage.pricing_unit of the lineitem, if applicable. UsageUnit string `protobuf:"bytes,8,opt,name=usageUnit,proto3" json:"usageUnit,omitempty"` // The usage.amount_in_pricing_units of the lineitem, if applicable. UsageAmount float64 `protobuf:"fixed64,9,opt,name=usageAmount,proto3" json:"usageAmount,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) GetCreditsName ¶ added in v0.65.11
func (*Cost) GetCreditsType ¶ added in v0.65.11
func (*Cost) GetGroupId ¶
func (*Cost) GetInvoiceMonth ¶ added in v0.65.10
func (*Cost) GetService ¶
func (*Cost) GetUsageAmount ¶
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.