pb

package
v0.0.0-...-540d597 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CustomCostsSource_GetCustomCosts_FullMethodName = "/customcost.messages.CustomCostsSource/GetCustomCosts"
)

Variables

View Source
var CustomCostsSource_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "customcost.messages.CustomCostsSource",
	HandlerType: (*CustomCostsSourceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCustomCosts",
			Handler:    _CustomCostsSource_GetCustomCosts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/customcost/messages.proto",
}

CustomCostsSource_ServiceDesc is the grpc.ServiceDesc for CustomCostsSource service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_protos_customcost_messages_proto protoreflect.FileDescriptor

Functions

func RegisterCustomCostsSourceServer

func RegisterCustomCostsSourceServer(s grpc.ServiceRegistrar, srv CustomCostsSourceServer)

Types

type CustomCost

type CustomCost struct {

	// provides metadata on the Custom CostResponse
	// deliberately left unstructured
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// the region that the resource was incurred
	// corresponds to 'availability zone' of FOCUS
	Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
	// FOCUS billing account name
	AccountName string `protobuf:"bytes,3,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// FOCUS charge category
	ChargeCategory string `protobuf:"bytes,4,opt,name=charge_category,json=chargeCategory,proto3" json:"charge_category,omitempty"`
	// FOCUS charge description
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// FOCUS Resource Name
	ResourceName string `protobuf:"bytes,6,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	// FOCUS Resource type
	// if not set, assumed to be domain
	ResourceType string `protobuf:"bytes,7,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// ID of the individual cost. should be globally
	// unique. Assigned by plugin on read
	Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"`
	// the provider's ID for the cost, if
	// available
	// FOCUS resource ID
	ProviderId string `protobuf:"bytes,9,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
	// FOCUS billed Cost
	BilledCost float32 `protobuf:"fixed32,10,opt,name=billed_cost,json=billedCost,proto3" json:"billed_cost,omitempty"`
	// FOCUS List Cost
	ListCost float32 `protobuf:"fixed32,11,opt,name=list_cost,json=listCost,proto3" json:"list_cost,omitempty"`
	// FOCUS List Unit Price
	ListUnitPrice float32 `protobuf:"fixed32,12,opt,name=list_unit_price,json=listUnitPrice,proto3" json:"list_unit_price,omitempty"`
	// FOCUS usage quantity
	UsageQuantity float32 `protobuf:"fixed32,13,opt,name=usage_quantity,json=usageQuantity,proto3" json:"usage_quantity,omitempty"`
	// FOCUS usage Unit
	UsageUnit string `protobuf:"bytes,14,opt,name=usage_unit,json=usageUnit,proto3" json:"usage_unit,omitempty"`
	// Returns key/value sets of labels
	// equivalent to Tags in focus spec
	Labels map[string]string `` /* 154-byte string literal not displayed */
	// Optional struct to implement other focus
	// spec attributes
	ExtendedAttributes *CustomCostExtendedAttributes `protobuf:"bytes,16,opt,name=extended_attributes,json=extendedAttributes,proto3,oneof" json:"extended_attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomCost) Descriptor deprecated

func (*CustomCost) Descriptor() ([]byte, []int)

Deprecated: Use CustomCost.ProtoReflect.Descriptor instead.

func (*CustomCost) GetAccountName

func (x *CustomCost) GetAccountName() string

func (*CustomCost) GetBilledCost

func (x *CustomCost) GetBilledCost() float32

func (*CustomCost) GetChargeCategory

func (x *CustomCost) GetChargeCategory() string

func (*CustomCost) GetDescription

func (x *CustomCost) GetDescription() string

func (*CustomCost) GetExtendedAttributes

func (x *CustomCost) GetExtendedAttributes() *CustomCostExtendedAttributes

func (*CustomCost) GetId

func (x *CustomCost) GetId() string

func (*CustomCost) GetLabels

func (x *CustomCost) GetLabels() map[string]string

func (*CustomCost) GetListCost

func (x *CustomCost) GetListCost() float32

func (*CustomCost) GetListUnitPrice

func (x *CustomCost) GetListUnitPrice() float32

func (*CustomCost) GetMetadata

func (x *CustomCost) GetMetadata() map[string]string

func (*CustomCost) GetProviderId

func (x *CustomCost) GetProviderId() string

func (*CustomCost) GetResourceName

func (x *CustomCost) GetResourceName() string

func (*CustomCost) GetResourceType

func (x *CustomCost) GetResourceType() string

func (*CustomCost) GetUsageQuantity

func (x *CustomCost) GetUsageQuantity() float32

func (*CustomCost) GetUsageUnit

func (x *CustomCost) GetUsageUnit() string

func (*CustomCost) GetZone

func (x *CustomCost) GetZone() string

func (*CustomCost) ProtoMessage

func (*CustomCost) ProtoMessage()

func (*CustomCost) ProtoReflect

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

func (*CustomCost) Reset

func (x *CustomCost) Reset()

func (*CustomCost) String

func (x *CustomCost) String() string

type CustomCostExtendedAttributes

type CustomCostExtendedAttributes struct {

	// FOCUS billing period start
	BillingPeriodStart *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=billing_period_start,json=billingPeriodStart,proto3,oneof" json:"billing_period_start,omitempty"`
	// FOCUS billing period end
	BillingPeriodEnd *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=billing_period_end,json=billingPeriodEnd,proto3,oneof" json:"billing_period_end,omitempty"`
	// FOCUS Billing Account ID
	AccountId *string `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3,oneof" json:"account_id,omitempty"`
	// FOCUS Charge Frequency
	ChargeFrequency *string `protobuf:"bytes,4,opt,name=charge_frequency,json=chargeFrequency,proto3,oneof" json:"charge_frequency,omitempty"`
	// FOCUS Charge Subcategory
	Subcategory *string `protobuf:"bytes,5,opt,name=subcategory,proto3,oneof" json:"subcategory,omitempty"`
	// FOCUS Commitment Discount Category
	CommitmentDiscountCategory *string `` /* 147-byte string literal not displayed */
	// FOCUS Commitment Discount ID
	CommitmentDiscountId *string `` /* 129-byte string literal not displayed */
	// FOCUS Commitment Discount Name
	CommitmentDiscountName *string `` /* 135-byte string literal not displayed */
	// FOCUS Commitment Discount Type
	CommitmentDiscountType *string `` /* 135-byte string literal not displayed */
	// FOCUS Effective Cost
	EffectiveCost *float32 `protobuf:"fixed32,10,opt,name=effective_cost,json=effectiveCost,proto3,oneof" json:"effective_cost,omitempty"`
	// FOCUS Invoice Issuer
	InvoiceIssuer *string `protobuf:"bytes,11,opt,name=invoice_issuer,json=invoiceIssuer,proto3,oneof" json:"invoice_issuer,omitempty"`
	// FOCUS Provider
	// if unset, assumed to be domain
	Provider *string `protobuf:"bytes,12,opt,name=provider,proto3,oneof" json:"provider,omitempty"`
	// FOCUS Publisher
	// if unset, assumed to be domain
	Publisher *string `protobuf:"bytes,13,opt,name=publisher,proto3,oneof" json:"publisher,omitempty"`
	// FOCUS Service Category
	// if unset, assumed to be cost source
	ServiceCategory *string `protobuf:"bytes,14,opt,name=service_category,json=serviceCategory,proto3,oneof" json:"service_category,omitempty"`
	// FOCUS Service Name
	// if unset, assumed to be cost source
	ServiceName *string `protobuf:"bytes,15,opt,name=service_name,json=serviceName,proto3,oneof" json:"service_name,omitempty"`
	// FOCUS SKU ID
	SkuId *string `protobuf:"bytes,16,opt,name=sku_id,json=skuId,proto3,oneof" json:"sku_id,omitempty"`
	// FOCUS SKU Price ID
	SkuPriceId *string `protobuf:"bytes,17,opt,name=sku_price_id,json=skuPriceId,proto3,oneof" json:"sku_price_id,omitempty"`
	// FOCUS Sub Account ID
	SubAccountId *string `protobuf:"bytes,18,opt,name=sub_account_id,json=subAccountId,proto3,oneof" json:"sub_account_id,omitempty"`
	// FOCUS Sub Account Name
	SubAccountName *string `protobuf:"bytes,19,opt,name=sub_account_name,json=subAccountName,proto3,oneof" json:"sub_account_name,omitempty"`
	// FOCUS Pricing Quantity
	PricingQuantity *float32 `protobuf:"fixed32,20,opt,name=pricing_quantity,json=pricingQuantity,proto3,oneof" json:"pricing_quantity,omitempty"`
	// FOCUS Pricing Unit
	PricingUnit *string `protobuf:"bytes,21,opt,name=pricing_unit,json=pricingUnit,proto3,oneof" json:"pricing_unit,omitempty"`
	// FOCUS Pricing Category
	PricingCategory *string `protobuf:"bytes,22,opt,name=pricing_category,json=pricingCategory,proto3,oneof" json:"pricing_category,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomCostExtendedAttributes) Descriptor deprecated

func (*CustomCostExtendedAttributes) Descriptor() ([]byte, []int)

Deprecated: Use CustomCostExtendedAttributes.ProtoReflect.Descriptor instead.

func (*CustomCostExtendedAttributes) GetAccountId

func (x *CustomCostExtendedAttributes) GetAccountId() string

func (*CustomCostExtendedAttributes) GetBillingPeriodEnd

func (x *CustomCostExtendedAttributes) GetBillingPeriodEnd() *timestamppb.Timestamp

func (*CustomCostExtendedAttributes) GetBillingPeriodStart

func (x *CustomCostExtendedAttributes) GetBillingPeriodStart() *timestamppb.Timestamp

func (*CustomCostExtendedAttributes) GetChargeFrequency

func (x *CustomCostExtendedAttributes) GetChargeFrequency() string

func (*CustomCostExtendedAttributes) GetCommitmentDiscountCategory

func (x *CustomCostExtendedAttributes) GetCommitmentDiscountCategory() string

func (*CustomCostExtendedAttributes) GetCommitmentDiscountId

func (x *CustomCostExtendedAttributes) GetCommitmentDiscountId() string

func (*CustomCostExtendedAttributes) GetCommitmentDiscountName

func (x *CustomCostExtendedAttributes) GetCommitmentDiscountName() string

func (*CustomCostExtendedAttributes) GetCommitmentDiscountType

func (x *CustomCostExtendedAttributes) GetCommitmentDiscountType() string

func (*CustomCostExtendedAttributes) GetEffectiveCost

func (x *CustomCostExtendedAttributes) GetEffectiveCost() float32

func (*CustomCostExtendedAttributes) GetInvoiceIssuer

func (x *CustomCostExtendedAttributes) GetInvoiceIssuer() string

func (*CustomCostExtendedAttributes) GetPricingCategory

func (x *CustomCostExtendedAttributes) GetPricingCategory() string

func (*CustomCostExtendedAttributes) GetPricingQuantity

func (x *CustomCostExtendedAttributes) GetPricingQuantity() float32

func (*CustomCostExtendedAttributes) GetPricingUnit

func (x *CustomCostExtendedAttributes) GetPricingUnit() string

func (*CustomCostExtendedAttributes) GetProvider

func (x *CustomCostExtendedAttributes) GetProvider() string

func (*CustomCostExtendedAttributes) GetPublisher

func (x *CustomCostExtendedAttributes) GetPublisher() string

func (*CustomCostExtendedAttributes) GetServiceCategory

func (x *CustomCostExtendedAttributes) GetServiceCategory() string

func (*CustomCostExtendedAttributes) GetServiceName

func (x *CustomCostExtendedAttributes) GetServiceName() string

func (*CustomCostExtendedAttributes) GetSkuId

func (x *CustomCostExtendedAttributes) GetSkuId() string

func (*CustomCostExtendedAttributes) GetSkuPriceId

func (x *CustomCostExtendedAttributes) GetSkuPriceId() string

func (*CustomCostExtendedAttributes) GetSubAccountId

func (x *CustomCostExtendedAttributes) GetSubAccountId() string

func (*CustomCostExtendedAttributes) GetSubAccountName

func (x *CustomCostExtendedAttributes) GetSubAccountName() string

func (*CustomCostExtendedAttributes) GetSubcategory

func (x *CustomCostExtendedAttributes) GetSubcategory() string

func (*CustomCostExtendedAttributes) ProtoMessage

func (*CustomCostExtendedAttributes) ProtoMessage()

func (*CustomCostExtendedAttributes) ProtoReflect

func (*CustomCostExtendedAttributes) Reset

func (x *CustomCostExtendedAttributes) Reset()

func (*CustomCostExtendedAttributes) String

type CustomCostRequest

type CustomCostRequest struct {

	// the window of the returned objects
	Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	// resolution of steps to return
	Resolution *durationpb.Duration `protobuf:"bytes,3,opt,name=resolution,proto3" json:"resolution,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomCostRequest) Descriptor deprecated

func (*CustomCostRequest) Descriptor() ([]byte, []int)

Deprecated: Use CustomCostRequest.ProtoReflect.Descriptor instead.

func (*CustomCostRequest) GetEnd

func (*CustomCostRequest) GetResolution

func (x *CustomCostRequest) GetResolution() *durationpb.Duration

func (*CustomCostRequest) GetStart

func (x *CustomCostRequest) GetStart() *timestamppb.Timestamp

func (*CustomCostRequest) ProtoMessage

func (*CustomCostRequest) ProtoMessage()

func (*CustomCostRequest) ProtoReflect

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

func (*CustomCostRequest) Reset

func (x *CustomCostRequest) Reset()

func (*CustomCostRequest) String

func (x *CustomCostRequest) String() string

type CustomCostResponse

type CustomCostResponse struct {

	// provides metadata on the Custom CostResponse
	// deliberately left unstructured
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// declared by plugin
	// eg snowflake == "data management",
	// datadog == "observability" etc
	// intended for top level agg
	CostSource string `protobuf:"bytes,2,opt,name=cost_source,json=costSource,proto3" json:"cost_source,omitempty"`
	// the name of the custom cost source
	// e.g., "datadog"
	Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
	// the version of the Custom Cost response
	// is set by the plugin, will vary between
	// different plugins
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// FOCUS billing currency
	Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
	// the window of the returned objects
	Start *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start,proto3" json:"start,omitempty"`
	End   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end,proto3" json:"end,omitempty"`
	// array of CustomCosts
	Costs []*CustomCost `protobuf:"bytes,8,rep,name=costs,proto3" json:"costs,omitempty"`
	// any errors in processing
	Errors []string `protobuf:"bytes,9,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomCostResponse) Descriptor deprecated

func (*CustomCostResponse) Descriptor() ([]byte, []int)

Deprecated: Use CustomCostResponse.ProtoReflect.Descriptor instead.

func (*CustomCostResponse) GetCostSource

func (x *CustomCostResponse) GetCostSource() string

func (*CustomCostResponse) GetCosts

func (x *CustomCostResponse) GetCosts() []*CustomCost

func (*CustomCostResponse) GetCurrency

func (x *CustomCostResponse) GetCurrency() string

func (*CustomCostResponse) GetDomain

func (x *CustomCostResponse) GetDomain() string

func (*CustomCostResponse) GetEnd

func (*CustomCostResponse) GetErrors

func (x *CustomCostResponse) GetErrors() []string

func (*CustomCostResponse) GetMetadata

func (x *CustomCostResponse) GetMetadata() map[string]string

func (*CustomCostResponse) GetStart

func (x *CustomCostResponse) GetStart() *timestamppb.Timestamp

func (*CustomCostResponse) GetVersion

func (x *CustomCostResponse) GetVersion() string

func (*CustomCostResponse) ProtoMessage

func (*CustomCostResponse) ProtoMessage()

func (*CustomCostResponse) ProtoReflect

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

func (*CustomCostResponse) Reset

func (x *CustomCostResponse) Reset()

func (*CustomCostResponse) String

func (x *CustomCostResponse) String() string

type CustomCostResponseSet

type CustomCostResponseSet struct {
	Resps []*CustomCostResponse `protobuf:"bytes,1,rep,name=resps,proto3" json:"resps,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomCostResponseSet) Descriptor deprecated

func (*CustomCostResponseSet) Descriptor() ([]byte, []int)

Deprecated: Use CustomCostResponseSet.ProtoReflect.Descriptor instead.

func (*CustomCostResponseSet) GetResps

func (x *CustomCostResponseSet) GetResps() []*CustomCostResponse

func (*CustomCostResponseSet) ProtoMessage

func (*CustomCostResponseSet) ProtoMessage()

func (*CustomCostResponseSet) ProtoReflect

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

func (*CustomCostResponseSet) Reset

func (x *CustomCostResponseSet) Reset()

func (*CustomCostResponseSet) String

func (x *CustomCostResponseSet) String() string

type CustomCostsSourceClient

type CustomCostsSourceClient interface {
	GetCustomCosts(ctx context.Context, in *CustomCostRequest, opts ...grpc.CallOption) (*CustomCostResponseSet, error)
}

CustomCostsSourceClient is the client API for CustomCostsSource service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CustomCostsSourceServer

type CustomCostsSourceServer interface {
	GetCustomCosts(context.Context, *CustomCostRequest) (*CustomCostResponseSet, error)
	// contains filtered or unexported methods
}

CustomCostsSourceServer is the server API for CustomCostsSource service. All implementations must embed UnimplementedCustomCostsSourceServer for forward compatibility

type UnimplementedCustomCostsSourceServer

type UnimplementedCustomCostsSourceServer struct {
}

UnimplementedCustomCostsSourceServer must be embedded to have forward compatible implementations.

func (UnimplementedCustomCostsSourceServer) GetCustomCosts

type UnsafeCustomCostsSourceServer

type UnsafeCustomCostsSourceServer interface {
	// contains filtered or unexported methods
}

UnsafeCustomCostsSourceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomCostsSourceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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