azure

package
v0.69.95 Latest Latest
Warning

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

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

Documentation

Index

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

Deprecated: Use Cost.ProtoReflect.Descriptor instead.

func (*Cost) GetAccount

func (x *Cost) GetAccount() string

func (*Cost) GetAlternateId

func (x *Cost) GetAlternateId() string

func (*Cost) GetBaseCurrency

func (x *Cost) GetBaseCurrency() string

func (*Cost) GetBillableQuantity

func (x *Cost) GetBillableQuantity() float64

func (*Cost) GetBillingType

func (x *Cost) GetBillingType() string

func (*Cost) GetChargeType

func (x *Cost) GetChargeType() string

func (*Cost) GetCost

func (x *Cost) GetCost() float64

func (*Cost) GetDate

func (x *Cost) GetDate() string

func (*Cost) GetDescription

func (x *Cost) GetDescription() string

func (*Cost) GetDomainName added in v0.64.18

func (x *Cost) GetDomainName() string

func (*Cost) GetEffectiveUnitPrice

func (x *Cost) GetEffectiveUnitPrice() float64

func (*Cost) GetExchangeRate

func (x *Cost) GetExchangeRate() float64

func (*Cost) GetGroupId

func (x *Cost) GetGroupId() string

func (*Cost) GetInstanceType added in v0.68.0

func (x *Cost) GetInstanceType() string

func (*Cost) GetOperation added in v0.68.0

func (x *Cost) GetOperation() string

func (*Cost) GetProductName

func (x *Cost) GetProductName() string

func (*Cost) GetRegion

func (x *Cost) GetRegion() string

func (*Cost) GetServiceName

func (x *Cost) GetServiceName() string

func (*Cost) GetTargetCost

func (x *Cost) GetTargetCost() float64

func (*Cost) GetTargetCurrency

func (x *Cost) GetTargetCurrency() string

func (*Cost) GetTimeInterval

func (x *Cost) GetTimeInterval() string

func (*Cost) GetUsageType added in v0.68.0

func (x *Cost) GetUsageType() 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