gcp

package
v0.71.99 Latest Latest
Warning

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

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

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Cost.ProtoReflect.Descriptor instead.

func (*Cost) GetAccount

func (x *Cost) GetAccount() string

func (*Cost) GetBaseCurrency

func (x *Cost) GetBaseCurrency() string

func (*Cost) GetCost

func (x *Cost) GetCost() float64

func (*Cost) GetCreditsName added in v0.65.11

func (x *Cost) GetCreditsName() string

func (*Cost) GetCreditsType added in v0.65.11

func (x *Cost) GetCreditsType() string

func (*Cost) GetDate

func (x *Cost) GetDate() string

func (*Cost) GetGroupId

func (x *Cost) GetGroupId() string

func (*Cost) GetInvoiceMonth added in v0.65.10

func (x *Cost) GetInvoiceMonth() string

func (*Cost) GetRegion

func (x *Cost) GetRegion() string

func (*Cost) GetService

func (x *Cost) GetService() string

func (*Cost) GetSku

func (x *Cost) GetSku() string

func (*Cost) GetUsageAmount

func (x *Cost) GetUsageAmount() float64

func (*Cost) GetUsageUnit

func (x *Cost) GetUsageUnit() string

func (*Cost) GetZone

func (x *Cost) GetZone() string

func (*Cost) ProtoMessage

func (*Cost) ProtoMessage()

func (*Cost) ProtoReflect

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

func (*Cost) Reset

func (x *Cost) Reset()

func (*Cost) String

func (x *Cost) String() string

Jump to

Keyboard shortcuts

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