Documentation ¶
Index ¶
- Variables
- type Cost
- func (*Cost) Descriptor() ([]byte, []int)deprecated
- func (x *Cost) GetAccount() string
- func (x *Cost) GetAlternateId() string
- func (x *Cost) GetBaseCurrency() string
- func (x *Cost) GetBillableQuantity() float64
- func (x *Cost) GetBillingType() string
- func (x *Cost) GetChargeType() string
- func (x *Cost) GetCost() float64
- func (x *Cost) GetDate() string
- func (x *Cost) GetDescription() string
- func (x *Cost) GetDomainName() string
- func (x *Cost) GetEffectiveUnitPrice() float64
- func (x *Cost) GetExchangeRate() float64
- func (x *Cost) GetGroupId() string
- func (x *Cost) GetInstanceType() string
- func (x *Cost) GetOperation() string
- func (x *Cost) GetProductName() string
- func (x *Cost) GetRegion() string
- func (x *Cost) GetServiceName() string
- func (x *Cost) GetTargetCost() float64
- func (x *Cost) GetTargetCurrency() string
- func (x *Cost) GetTimeInterval() string
- func (x *Cost) GetUsageType() 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_azure_cost_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Cost ¶
type Cost struct { // The account being queried. 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 name, such as `Software License`, `Cognosys`, `SendGrid`, `New-Commerce ERP Software License`, etc. ServiceName string `protobuf:"bytes,4,opt,name=serviceName,proto3" json:"serviceName,omitempty"` // The product code for an Azure service, such as `Dsv4 Series Windows VM`, `CentOS 7.6`, etc. ProductName string `protobuf:"bytes,5,opt,name=productName,proto3" json:"productName,omitempty"` // The region of lineitem, if applicable. Region string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"` // The charge type of lineitem, if applicable. Such as `New`, `CycleCharge`, `Prorate fees when cancel`, etc. ChargeType string `protobuf:"bytes,7,opt,name=chargeType,proto3" json:"chargeType,omitempty"` // The description of lineitem, if applicable. Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // The billable quantity of lineitem, if applicable. BillableQuantity float64 `protobuf:"fixed64,9,opt,name=billableQuantity,proto3" json:"billableQuantity,omitempty"` // The effective unit price of lineitem, if applicable. EffectiveUnitPrice float64 `protobuf:"fixed64,10,opt,name=effectiveUnitPrice,proto3" json:"effectiveUnitPrice,omitempty"` // The true cost (calculated) for this lineitem. Cost float64 `protobuf:"fixed64,11,opt,name=cost,proto3" json:"cost,omitempty"` // The base currency for `cost`. BaseCurrency string `protobuf:"bytes,12,opt,name=baseCurrency,proto3" json:"baseCurrency,omitempty"` // The exchange rate used to convert `baseCurrency` to `targetCurrency`. ExchangeRate float64 `protobuf:"fixed64,13,opt,name=exchangeRate,proto3" json:"exchangeRate,omitempty"` // Converted `cost`. TargetCost float64 `protobuf:"fixed64,14,opt,name=targetCost,proto3" json:"targetCost,omitempty"` // The currency set by `toCurrency`. TargetCurrency string `protobuf:"bytes,15,opt,name=targetCurrency,proto3" json:"targetCurrency,omitempty"` // The time interval of lineitem, if applicable. Format is `yyyy-MM-ddThh:MM:ssZ/yyyy-mm-ddTHH:mm:ssZ` (for example 2020-09-16T00:00:00Z/2021-09-24T00:00:00Z). TimeInterval string `protobuf:"bytes,16,opt,name=timeInterval,proto3" json:"timeInterval,omitempty"` // The billing type of lineitem, if applicable. Such as `MARKETPLACE`, `UPFRONT`, `Refund`, `Credit` and `OTHERS`. BillingType string `protobuf:"bytes,17,opt,name=billingType,proto3" json:"billingType,omitempty"` // The alternate ID of lineitem, if applicable. AlternateId string `protobuf:"bytes,18,opt,name=alternateId,proto3" json:"alternateId,omitempty"` // The domain name of lineitem, if applicable. DomainName string `protobuf:"bytes,19,opt,name=domainName,proto3" json:"domainName,omitempty"` // The operation of lineitem, if applicable. Such as `Cool LRS Write Operations`, `Cool LRS Data Write`, `Standard Data Transfer Out`, etc. Operation string `protobuf:"bytes,20,opt,name=operation,proto3" json:"operation,omitempty"` // The usage type of lineitem, if applicable. Such as `Standard HDD Managed Disks`, `Tables`, `Blob Storage`, etc. UsageType string `protobuf:"bytes,21,opt,name=usageType,proto3" json:"usageType,omitempty"` // The instance type of lineitem, if applicable. Such as `Gateway`, `Standard_B2s`, `Standard_D4s_v3`, etc. InstanceType string `protobuf:"bytes,22,opt,name=instanceType,proto3" json:"instanceType,omitempty"` // contains filtered or unexported fields }
func (*Cost) Descriptor
deprecated
func (*Cost) GetAccount ¶
func (*Cost) GetAlternateId ¶
func (*Cost) GetBaseCurrency ¶
func (*Cost) GetBillableQuantity ¶
func (*Cost) GetBillingType ¶
func (*Cost) GetChargeType ¶
func (*Cost) GetDescription ¶
func (*Cost) GetDomainName ¶ added in v0.64.18
func (*Cost) GetEffectiveUnitPrice ¶
func (*Cost) GetExchangeRate ¶
func (*Cost) GetGroupId ¶
func (*Cost) GetInstanceType ¶ added in v0.68.0
func (*Cost) GetOperation ¶ added in v0.68.0
func (*Cost) GetProductName ¶
func (*Cost) GetServiceName ¶
func (*Cost) GetTargetCost ¶
func (*Cost) GetTargetCurrency ¶
func (*Cost) GetTimeInterval ¶
func (*Cost) GetUsageType ¶ added in v0.68.0
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.