cost

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 21 Imported by: 7

Documentation

Overview

Package cost is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Cost_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blueapi.cost.v1.Cost",
	HandlerType: (*CostServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetManagementAccount",
			Handler:    _Cost_GetManagementAccount_Handler,
		},
		{
			MethodName: "GetManagementAccountUpdateHistory",
			Handler:    _Cost_GetManagementAccountUpdateHistory_Handler,
		},
		{
			MethodName: "CreateManagementAccount",
			Handler:    _Cost_CreateManagementAccount_Handler,
		},
		{
			MethodName: "DeleteManagementAccount",
			Handler:    _Cost_DeleteManagementAccount_Handler,
		},
		{
			MethodName: "GetAccount",
			Handler:    _Cost_GetAccount_Handler,
		},
		{
			MethodName: "CreateAccount",
			Handler:    _Cost_CreateAccount_Handler,
		},
		{
			MethodName: "DeleteAccount",
			Handler:    _Cost_DeleteAccount_Handler,
		},
		{
			MethodName: "ImportCurFiles",
			Handler:    _Cost_ImportCurFiles_Handler,
		},
		{
			MethodName: "CalculateCosts",
			Handler:    _Cost_CalculateCosts_Handler,
		},
		{
			MethodName: "CreateBudgetConfig",
			Handler:    _Cost_CreateBudgetConfig_Handler,
		},
		{
			MethodName: "UpdateBudgetConfig",
			Handler:    _Cost_UpdateBudgetConfig_Handler,
		},
		{
			MethodName: "GetBudgetConfig",
			Handler:    _Cost_GetBudgetConfig_Handler,
		},
		{
			MethodName: "GetForecasts",
			Handler:    _Cost_GetForecasts_Handler,
		},
		{
			MethodName: "GetMonthToDateForecast",
			Handler:    _Cost_GetMonthToDateForecast_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListManagementAccounts",
			Handler:       _Cost_ListManagementAccounts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListAccounts",
			Handler:       _Cost_ListAccounts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadCosts",
			Handler:       _Cost_ReadCosts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadAdjustments",
			Handler:       _Cost_ReadAdjustments_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadBillingGroupTagCosts",
			Handler:       _Cost_ReadBillingGroupTagCosts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadBillingGroupNonTagCosts",
			Handler:       _Cost_ReadBillingGroupNonTagCosts_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "cost/v1/cost.proto",
}

Cost_ServiceDesc is the grpc.ServiceDesc for Cost 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_cost_v1_cost_proto protoreflect.FileDescriptor

Functions

func RegisterCostHandler

func RegisterCostHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCostHandler registers the http handlers for service Cost to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCostHandlerClient

func RegisterCostHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CostClient) error

RegisterCostHandlerClient registers the http handlers for service Cost to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CostClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CostClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CostClient" to call the correct interceptors.

func RegisterCostHandlerFromEndpoint

func RegisterCostHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCostHandlerFromEndpoint is same as RegisterCostHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCostHandlerServer

func RegisterCostHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CostServer) error

RegisterCostHandlerServer registers the http handlers for service Cost to "mux". UnaryRPC :call CostServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCostHandlerFromEndpoint instead.

func RegisterCostServer

func RegisterCostServer(s grpc.ServiceRegistrar, srv CostServer)

Types

type AdjustmentItem

type AdjustmentItem struct {
	Aws *aws.Adjustment `protobuf:"bytes,1,opt,name=aws,proto3" json:"aws,omitempty"`
	// contains filtered or unexported fields
}

Response message wrapper for cloud cost adjustments.

func (*AdjustmentItem) Descriptor deprecated

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

Deprecated: Use AdjustmentItem.ProtoReflect.Descriptor instead.

func (*AdjustmentItem) GetAws

func (x *AdjustmentItem) GetAws() *aws.Adjustment

func (*AdjustmentItem) ProtoMessage

func (*AdjustmentItem) ProtoMessage()

func (*AdjustmentItem) ProtoReflect

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

func (*AdjustmentItem) Reset

func (x *AdjustmentItem) Reset()

func (*AdjustmentItem) String

func (x *AdjustmentItem) String() string

type AwsOptions added in v0.9.1

type AwsOptions struct {

	// Optional. If set to true, stream will include resource tags. Note that this could
	// potentially increase the data size if you have lots of tag information.
	IncludeTags bool `protobuf:"varint,1,opt,name=includeTags,proto3" json:"includeTags,omitempty"`
	// Optional. If set to true, stream will include resource cost category information.
	// Note that this could potentially increase the data size if you have lots of cost
	// category information.
	IncludeCostCategories bool `protobuf:"varint,2,opt,name=includeCostCategories,proto3" json:"includeCostCategories,omitempty"`
	// contains filtered or unexported fields
}

AWS-specific options.

func (*AwsOptions) Descriptor deprecated added in v0.9.1

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

Deprecated: Use AwsOptions.ProtoReflect.Descriptor instead.

func (*AwsOptions) GetIncludeCostCategories added in v0.9.1

func (x *AwsOptions) GetIncludeCostCategories() bool

func (*AwsOptions) GetIncludeTags added in v0.9.1

func (x *AwsOptions) GetIncludeTags() bool

func (*AwsOptions) ProtoMessage added in v0.9.1

func (*AwsOptions) ProtoMessage()

func (*AwsOptions) ProtoReflect added in v0.9.1

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

func (*AwsOptions) Reset added in v0.9.1

func (x *AwsOptions) Reset()

func (*AwsOptions) String added in v0.9.1

func (x *AwsOptions) String() string

type CalculateCostsRequest added in v0.10.2

type CalculateCostsRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Optional. If set to a particular billing group, calculate for that billing group.
	// If empty, calculate for all billing groups.
	//
	// At the moment, for AWS, this is only valid for account type billing groups, not
	// tag billing groups. If a tag billing group is provided, it is discarded and the
	// calculation is done for the whole organization.
	CompanyId string `protobuf:"bytes,2,opt,name=companyId,proto3" json:"companyId,omitempty"`
	// Optional. The month to calculate. If empty, it defaults to the previous month.
	// Format is `yyyymm`. For example, June 2021 will be `202106`.
	Month string `protobuf:"bytes,3,opt,name=month,proto3" json:"month,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.CalculateCosts rpc.

func (*CalculateCostsRequest) Descriptor deprecated added in v0.10.2

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

Deprecated: Use CalculateCostsRequest.ProtoReflect.Descriptor instead.

func (*CalculateCostsRequest) GetCompanyId added in v0.27.0

func (x *CalculateCostsRequest) GetCompanyId() string

func (*CalculateCostsRequest) GetMonth added in v0.10.2

func (x *CalculateCostsRequest) GetMonth() string

func (*CalculateCostsRequest) GetVendor added in v0.10.2

func (x *CalculateCostsRequest) GetVendor() string

func (*CalculateCostsRequest) ProtoMessage added in v0.10.2

func (*CalculateCostsRequest) ProtoMessage()

func (*CalculateCostsRequest) ProtoReflect added in v0.10.2

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

func (*CalculateCostsRequest) Reset added in v0.10.2

func (x *CalculateCostsRequest) Reset()

func (*CalculateCostsRequest) String added in v0.10.2

func (x *CalculateCostsRequest) String() string

type ClientOptions

type ClientOptions struct {
	Conn *conn.GrpcClientConn
}

ClientOptions represents the optional options to NewClient.

type CostClient

type CostClient interface {
	// Lists AWS management accounts (formerly known as master or payer accounts).
	ListManagementAccounts(ctx context.Context, in *ListManagementAccountsRequest, opts ...grpc.CallOption) (Cost_ListManagementAccountsClient, error)
	// Gets an AWS management account. This API includes all of the account's metadata.
	// See https://alphauslabs.github.io/blueapi/ for the list of supported attributes.
	GetManagementAccount(ctx context.Context, in *GetManagementAccountRequest, opts ...grpc.CallOption) (*aws.Account, error)
	// Gets an AWS management account's update history, which is a list of timestamps our system tracks when the account's CUR files are
	// exported to your S3 by AWS, which in turn, triggers the import from your S3 to our system for processing.
	GetManagementAccountUpdateHistory(ctx context.Context, in *GetManagementAccountUpdateHistoryRequest, opts ...grpc.CallOption) (*GetManagementAccountUpdateHistoryResponse, error)
	// Registers an AWS management account. See [https://docs.aws.amazon.com/cur/latest/userguide/cur-create.html]
	// for more information. Requirements include: Additional report details = 'Include Resource IDS' enabled,
	// Prefix = non-empty (recommendation only), Time granularity = 'Hourly', File format = 'text/csv'.
	// See [https://help.alphaus.cloud/en/articles/3612555-ripple-aws-things-you-need-to-prepare-before-starting]
	// for more information.
	CreateManagementAccount(ctx context.Context, in *CreateManagementAccountRequest, opts ...grpc.CallOption) (*aws.Account, error)
	// Deletes an AWS management account.
	DeleteManagementAccount(ctx context.Context, in *DeleteManagementAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Lists all vendor accounts.
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (Cost_ListAccountsClient, error)
	// Gets a vendor account. This API includes all of the account's metadata. See
	// https://alphauslabs.github.io/blueapi/ for the list of supported attributes.
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
	// Registers a vendor account.
	CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error)
	// Deletes a vendor account.
	DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Initiates an ondemand import of all registered CUR files. See
	// [https://help.alphaus.cloud/en/articles/3612555-ripple-aws-things-you-need-to-prepare-before-starting]
	// for more information.
	ImportCurFiles(ctx context.Context, in *ImportCurFilesRequest, opts ...grpc.CallOption) (*api.Operation, error)
	// Triggers monthly calculations for costs and invoices at either organization or billing group level.
	CalculateCosts(ctx context.Context, in *CalculateCostsRequest, opts ...grpc.CallOption) (*api.Operation, error)
	// Reads the usage-based cost details of an organization (Ripple) or billing group (Wave).
	// At the moment, the supported {vendor} is 'aws'. If datetime range parameters are
	// not set, month-to-date (current month) will be returned.
	ReadCosts(ctx context.Context, in *ReadCostsRequest, opts ...grpc.CallOption) (Cost_ReadCostsClient, error)
	// Reads the non-usage-based details of an organization (Ripple) or billing group (Wave).
	// This API covers non-usage-based adjustments, such as Fees, Credits, Discounts, Tax,
	// Upfront Fees, etc. At the moment, the supported {vendor} is 'aws'. If datetime
	// range parameters are not set, month-to-date (current month) will be returned.
	ReadAdjustments(ctx context.Context, in *ReadAdjustmentsRequest, opts ...grpc.CallOption) (Cost_ReadAdjustmentsClient, error)
	// Reads the usage-based tag costs of a billing group. At the moment, the supported {vendor} is
	// 'aws'. If datetime range parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupTagCosts(ctx context.Context, in *ReadBillingGroupTagCostsRequest, opts ...grpc.CallOption) (Cost_ReadBillingGroupTagCostsClient, error)
	// Reads the usage-based non tag costs of a billing group. At the moment, the supported {vendor} is
	// 'aws'. If datetime range parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupNonTagCosts(ctx context.Context, in *ReadBillingGroupNonTagCostsRequest, opts ...grpc.CallOption) (Cost_ReadBillingGroupNonTagCostsClient, error)
	// Creates a budget configuration.
	CreateBudgetConfig(ctx context.Context, in *CreateBudgetConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Updates an existing budget configuration.
	UpdateBudgetConfig(ctx context.Context, in *UpdateBudgetConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Fetches budget configurations for all accounts under the specified billing group.
	// Set accountId to fetch budget configuration for specific account only.
	GetBudgetConfig(ctx context.Context, in *GetBudgetConfigRequest, opts ...grpc.CallOption) (*GetBudgetConfigResponse, error)
	// Fetches cost forecasts for the specified billing group.
	// Includes historical cost (up to previous month) and forecasted cost (up to three months for now).
	GetForecasts(ctx context.Context, in *GetForecastsRequest, opts ...grpc.CallOption) (*GetForecastsResponse, error)
	// Fetches month-to-date accumulated costs vs forecasted cost vs budget for the specified billing group.
	GetMonthToDateForecast(ctx context.Context, in *GetMonthToDateForecastRequest, opts ...grpc.CallOption) (*GetMonthToDateForecastResponse, error)
}

CostClient is the client API for Cost 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.

func NewCostClient

func NewCostClient(cc grpc.ClientConnInterface) CostClient

type CostItem

type CostItem struct {
	Aws *aws.Cost `protobuf:"bytes,1,opt,name=aws,proto3" json:"aws,omitempty"`
	// contains filtered or unexported fields
}

Response message wrapper for cloud costs.

func (*CostItem) Descriptor deprecated

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

Deprecated: Use CostItem.ProtoReflect.Descriptor instead.

func (*CostItem) GetAws

func (x *CostItem) GetAws() *aws.Cost

func (*CostItem) ProtoMessage

func (*CostItem) ProtoMessage()

func (*CostItem) ProtoReflect

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

func (*CostItem) Reset

func (x *CostItem) Reset()

func (*CostItem) String

func (x *CostItem) String() string

type CostServer

type CostServer interface {
	// Lists AWS management accounts (formerly known as master or payer accounts).
	ListManagementAccounts(*ListManagementAccountsRequest, Cost_ListManagementAccountsServer) error
	// Gets an AWS management account. This API includes all of the account's metadata.
	// See https://alphauslabs.github.io/blueapi/ for the list of supported attributes.
	GetManagementAccount(context.Context, *GetManagementAccountRequest) (*aws.Account, error)
	// Gets an AWS management account's update history, which is a list of timestamps our system tracks when the account's CUR files are
	// exported to your S3 by AWS, which in turn, triggers the import from your S3 to our system for processing.
	GetManagementAccountUpdateHistory(context.Context, *GetManagementAccountUpdateHistoryRequest) (*GetManagementAccountUpdateHistoryResponse, error)
	// Registers an AWS management account. See [https://docs.aws.amazon.com/cur/latest/userguide/cur-create.html]
	// for more information. Requirements include: Additional report details = 'Include Resource IDS' enabled,
	// Prefix = non-empty (recommendation only), Time granularity = 'Hourly', File format = 'text/csv'.
	// See [https://help.alphaus.cloud/en/articles/3612555-ripple-aws-things-you-need-to-prepare-before-starting]
	// for more information.
	CreateManagementAccount(context.Context, *CreateManagementAccountRequest) (*aws.Account, error)
	// Deletes an AWS management account.
	DeleteManagementAccount(context.Context, *DeleteManagementAccountRequest) (*emptypb.Empty, error)
	// Lists all vendor accounts.
	ListAccounts(*ListAccountsRequest, Cost_ListAccountsServer) error
	// Gets a vendor account. This API includes all of the account's metadata. See
	// https://alphauslabs.github.io/blueapi/ for the list of supported attributes.
	GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
	// Registers a vendor account.
	CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
	// Deletes a vendor account.
	DeleteAccount(context.Context, *DeleteAccountRequest) (*emptypb.Empty, error)
	// Initiates an ondemand import of all registered CUR files. See
	// [https://help.alphaus.cloud/en/articles/3612555-ripple-aws-things-you-need-to-prepare-before-starting]
	// for more information.
	ImportCurFiles(context.Context, *ImportCurFilesRequest) (*api.Operation, error)
	// Triggers monthly calculations for costs and invoices at either organization or billing group level.
	CalculateCosts(context.Context, *CalculateCostsRequest) (*api.Operation, error)
	// Reads the usage-based cost details of an organization (Ripple) or billing group (Wave).
	// At the moment, the supported {vendor} is 'aws'. If datetime range parameters are
	// not set, month-to-date (current month) will be returned.
	ReadCosts(*ReadCostsRequest, Cost_ReadCostsServer) error
	// Reads the non-usage-based details of an organization (Ripple) or billing group (Wave).
	// This API covers non-usage-based adjustments, such as Fees, Credits, Discounts, Tax,
	// Upfront Fees, etc. At the moment, the supported {vendor} is 'aws'. If datetime
	// range parameters are not set, month-to-date (current month) will be returned.
	ReadAdjustments(*ReadAdjustmentsRequest, Cost_ReadAdjustmentsServer) error
	// Reads the usage-based tag costs of a billing group. At the moment, the supported {vendor} is
	// 'aws'. If datetime range parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupTagCosts(*ReadBillingGroupTagCostsRequest, Cost_ReadBillingGroupTagCostsServer) error
	// Reads the usage-based non tag costs of a billing group. At the moment, the supported {vendor} is
	// 'aws'. If datetime range parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupNonTagCosts(*ReadBillingGroupNonTagCostsRequest, Cost_ReadBillingGroupNonTagCostsServer) error
	// Creates a budget configuration.
	CreateBudgetConfig(context.Context, *CreateBudgetConfigRequest) (*emptypb.Empty, error)
	// Updates an existing budget configuration.
	UpdateBudgetConfig(context.Context, *UpdateBudgetConfigRequest) (*emptypb.Empty, error)
	// Fetches budget configurations for all accounts under the specified billing group.
	// Set accountId to fetch budget configuration for specific account only.
	GetBudgetConfig(context.Context, *GetBudgetConfigRequest) (*GetBudgetConfigResponse, error)
	// Fetches cost forecasts for the specified billing group.
	// Includes historical cost (up to previous month) and forecasted cost (up to three months for now).
	GetForecasts(context.Context, *GetForecastsRequest) (*GetForecastsResponse, error)
	// Fetches month-to-date accumulated costs vs forecasted cost vs budget for the specified billing group.
	GetMonthToDateForecast(context.Context, *GetMonthToDateForecastRequest) (*GetMonthToDateForecastResponse, error)
	// contains filtered or unexported methods
}

CostServer is the server API for Cost service. All implementations must embed UnimplementedCostServer for forward compatibility

type Cost_ListAccountsClient added in v0.29.0

type Cost_ListAccountsClient interface {
	Recv() (*ListAccountsResponse, error)
	grpc.ClientStream
}

type Cost_ListAccountsServer added in v0.29.0

type Cost_ListAccountsServer interface {
	Send(*ListAccountsResponse) error
	grpc.ServerStream
}

type Cost_ListManagementAccountsClient added in v0.25.0

type Cost_ListManagementAccountsClient interface {
	Recv() (*aws.Account, error)
	grpc.ClientStream
}

type Cost_ListManagementAccountsServer added in v0.25.0

type Cost_ListManagementAccountsServer interface {
	Send(*aws.Account) error
	grpc.ServerStream
}

type Cost_ReadAdjustmentsClient

type Cost_ReadAdjustmentsClient interface {
	Recv() (*AdjustmentItem, error)
	grpc.ClientStream
}

type Cost_ReadAdjustmentsServer

type Cost_ReadAdjustmentsServer interface {
	Send(*AdjustmentItem) error
	grpc.ServerStream
}

type Cost_ReadBillingGroupNonTagCostsClient added in v0.29.0

type Cost_ReadBillingGroupNonTagCostsClient interface {
	Recv() (*CostItem, error)
	grpc.ClientStream
}

type Cost_ReadBillingGroupNonTagCostsServer added in v0.29.0

type Cost_ReadBillingGroupNonTagCostsServer interface {
	Send(*CostItem) error
	grpc.ServerStream
}

type Cost_ReadBillingGroupTagCostsClient added in v0.10.1

type Cost_ReadBillingGroupTagCostsClient interface {
	Recv() (*CostItem, error)
	grpc.ClientStream
}

type Cost_ReadBillingGroupTagCostsServer added in v0.10.1

type Cost_ReadBillingGroupTagCostsServer interface {
	Send(*CostItem) error
	grpc.ServerStream
}

type Cost_ReadCostsClient

type Cost_ReadCostsClient interface {
	Recv() (*CostItem, error)
	grpc.ClientStream
}

type Cost_ReadCostsServer

type Cost_ReadCostsServer interface {
	Send(*CostItem) error
	grpc.ServerStream
}

type CreateAccountOptionsAws added in v0.29.0

type CreateAccountOptionsAws struct {

	// Optional. The management account id (formerly known as master, or payer) to
	// which an account belongs to, initially. If the account is moved to another
	// management account, the system is able to detect it and set this value
	// accordingly.
	ManagementAccountId string `protobuf:"bytes,1,opt,name=managementAccountId,proto3" json:"managementAccountId,omitempty"`
	// contains filtered or unexported fields
}

AWS-specific options for registering an account.

func (*CreateAccountOptionsAws) Descriptor deprecated added in v0.29.0

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

Deprecated: Use CreateAccountOptionsAws.ProtoReflect.Descriptor instead.

func (*CreateAccountOptionsAws) GetManagementAccountId added in v0.29.0

func (x *CreateAccountOptionsAws) GetManagementAccountId() string

func (*CreateAccountOptionsAws) ProtoMessage added in v0.29.0

func (*CreateAccountOptionsAws) ProtoMessage()

func (*CreateAccountOptionsAws) ProtoReflect added in v0.29.0

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

func (*CreateAccountOptionsAws) Reset added in v0.29.0

func (x *CreateAccountOptionsAws) Reset()

func (*CreateAccountOptionsAws) String added in v0.29.0

func (x *CreateAccountOptionsAws) String() string

type CreateAccountRequest added in v0.29.0

type CreateAccountRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. The account id to register.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Optional. If empty, set to the value of `id`.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The parent `companyId` of the billing group to which this account
	// will belong to.
	Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. AWS-specific options.
	AwsOptions *CreateAccountOptionsAws `protobuf:"bytes,5,opt,name=awsOptions,proto3" json:"awsOptions,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.CreateAccount rpc.

func (*CreateAccountRequest) Descriptor deprecated added in v0.29.0

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

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetAwsOptions added in v0.29.0

func (x *CreateAccountRequest) GetAwsOptions() *CreateAccountOptionsAws

func (*CreateAccountRequest) GetId added in v0.29.0

func (x *CreateAccountRequest) GetId() string

func (*CreateAccountRequest) GetName added in v0.29.0

func (x *CreateAccountRequest) GetName() string

func (*CreateAccountRequest) GetParent added in v0.29.0

func (x *CreateAccountRequest) GetParent() string

func (*CreateAccountRequest) GetVendor added in v0.29.0

func (x *CreateAccountRequest) GetVendor() string

func (*CreateAccountRequest) ProtoMessage added in v0.29.0

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect added in v0.29.0

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

func (*CreateAccountRequest) Reset added in v0.29.0

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String added in v0.29.0

func (x *CreateAccountRequest) String() string

type CreateAccountResponse added in v0.29.0

type CreateAccountResponse struct {
	Aws *aws.Account `protobuf:"bytes,1,opt,name=aws,proto3" json:"aws,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Cost.CreateAccount rpc.

func (*CreateAccountResponse) Descriptor deprecated added in v0.29.0

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

Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.

func (*CreateAccountResponse) GetAws added in v0.29.0

func (x *CreateAccountResponse) GetAws() *aws.Account

func (*CreateAccountResponse) ProtoMessage added in v0.29.0

func (*CreateAccountResponse) ProtoMessage()

func (*CreateAccountResponse) ProtoReflect added in v0.29.0

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

func (*CreateAccountResponse) Reset added in v0.29.0

func (x *CreateAccountResponse) Reset()

func (*CreateAccountResponse) String added in v0.29.0

func (x *CreateAccountResponse) String() string

type CreateBudgetConfigRequest added in v0.17.0

type CreateBudgetConfigRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. Budget configuration to save.
	BudgetConfig *api.BudgetConfiguration `protobuf:"bytes,2,opt,name=budgetConfig,proto3" json:"budgetConfig,omitempty"`
	// contains filtered or unexported fields
}

Request message for CreateBudgetConfig.

func (*CreateBudgetConfigRequest) Descriptor deprecated added in v0.17.0

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

Deprecated: Use CreateBudgetConfigRequest.ProtoReflect.Descriptor instead.

func (*CreateBudgetConfigRequest) GetBudgetConfig added in v0.17.0

func (x *CreateBudgetConfigRequest) GetBudgetConfig() *api.BudgetConfiguration

func (*CreateBudgetConfigRequest) GetVendor added in v0.17.0

func (x *CreateBudgetConfigRequest) GetVendor() string

func (*CreateBudgetConfigRequest) ProtoMessage added in v0.17.0

func (*CreateBudgetConfigRequest) ProtoMessage()

func (*CreateBudgetConfigRequest) ProtoReflect added in v0.17.0

func (*CreateBudgetConfigRequest) Reset added in v0.17.0

func (x *CreateBudgetConfigRequest) Reset()

func (*CreateBudgetConfigRequest) String added in v0.17.0

func (x *CreateBudgetConfigRequest) String() string

type CreateManagementAccountRequest added in v0.10.0

type CreateManagementAccountRequest struct {

	// Required. The id of the management account.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional. The name, or description of the management account.
	// This is set to `id` when not specified.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Required. S3 Bucket name.
	BucketName string `protobuf:"bytes,3,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
	// Optional. Prefix.
	Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// Required. Report name.
	ReportName string `protobuf:"bytes,5,opt,name=reportName,proto3" json:"reportName,omitempty"`
	// Required. Role ARN for Alphaus to assume for access.
	RoleArn string `protobuf:"bytes,6,opt,name=roleArn,proto3" json:"roleArn,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.CreateManagementAccount rpc.

func (*CreateManagementAccountRequest) Descriptor deprecated added in v0.10.0

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

Deprecated: Use CreateManagementAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateManagementAccountRequest) GetBucketName added in v0.10.0

func (x *CreateManagementAccountRequest) GetBucketName() string

func (*CreateManagementAccountRequest) GetId added in v0.10.0

func (*CreateManagementAccountRequest) GetName added in v0.10.0

func (*CreateManagementAccountRequest) GetPrefix added in v0.10.0

func (x *CreateManagementAccountRequest) GetPrefix() string

func (*CreateManagementAccountRequest) GetReportName added in v0.10.0

func (x *CreateManagementAccountRequest) GetReportName() string

func (*CreateManagementAccountRequest) GetRoleArn added in v0.10.0

func (x *CreateManagementAccountRequest) GetRoleArn() string

func (*CreateManagementAccountRequest) ProtoMessage added in v0.10.0

func (*CreateManagementAccountRequest) ProtoMessage()

func (*CreateManagementAccountRequest) ProtoReflect added in v0.10.0

func (*CreateManagementAccountRequest) Reset added in v0.10.0

func (x *CreateManagementAccountRequest) Reset()

func (*CreateManagementAccountRequest) String added in v0.10.0

type DeleteAccountRequest added in v0.29.0

type DeleteAccountRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. The account id to delete.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.DeleteAccount rpc.

func (*DeleteAccountRequest) Descriptor deprecated added in v0.29.0

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

Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.

func (*DeleteAccountRequest) GetId added in v0.29.0

func (x *DeleteAccountRequest) GetId() string

func (*DeleteAccountRequest) GetVendor added in v0.29.0

func (x *DeleteAccountRequest) GetVendor() string

func (*DeleteAccountRequest) ProtoMessage added in v0.29.0

func (*DeleteAccountRequest) ProtoMessage()

func (*DeleteAccountRequest) ProtoReflect added in v0.29.0

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

func (*DeleteAccountRequest) Reset added in v0.29.0

func (x *DeleteAccountRequest) Reset()

func (*DeleteAccountRequest) String added in v0.29.0

func (x *DeleteAccountRequest) String() string

type DeleteManagementAccountRequest added in v0.10.0

type DeleteManagementAccountRequest struct {

	// Required. The id of the management account.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.DeleteManagementAccount rpc.

func (*DeleteManagementAccountRequest) Descriptor deprecated added in v0.10.0

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

Deprecated: Use DeleteManagementAccountRequest.ProtoReflect.Descriptor instead.

func (*DeleteManagementAccountRequest) GetId added in v0.10.0

func (*DeleteManagementAccountRequest) ProtoMessage added in v0.10.0

func (*DeleteManagementAccountRequest) ProtoMessage()

func (*DeleteManagementAccountRequest) ProtoReflect added in v0.10.0

func (*DeleteManagementAccountRequest) Reset added in v0.10.0

func (x *DeleteManagementAccountRequest) Reset()

func (*DeleteManagementAccountRequest) String added in v0.10.0

type GetAccountRequest added in v0.29.0

type GetAccountRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. The account id to retrieve.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.GetAccount rpc.

func (*GetAccountRequest) Descriptor deprecated added in v0.29.0

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

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetId added in v0.29.0

func (x *GetAccountRequest) GetId() string

func (*GetAccountRequest) GetVendor added in v0.29.0

func (x *GetAccountRequest) GetVendor() string

func (*GetAccountRequest) ProtoMessage added in v0.29.0

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect added in v0.29.0

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

func (*GetAccountRequest) Reset added in v0.29.0

func (x *GetAccountRequest) Reset()

func (*GetAccountRequest) String added in v0.29.0

func (x *GetAccountRequest) String() string

type GetAccountResponse added in v0.29.0

type GetAccountResponse struct {
	Aws *aws.Account `protobuf:"bytes,1,opt,name=aws,proto3" json:"aws,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Cost.GetAccount rpc.

func (*GetAccountResponse) Descriptor deprecated added in v0.29.0

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

Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.

func (*GetAccountResponse) GetAws added in v0.29.0

func (x *GetAccountResponse) GetAws() *aws.Account

func (*GetAccountResponse) ProtoMessage added in v0.29.0

func (*GetAccountResponse) ProtoMessage()

func (*GetAccountResponse) ProtoReflect added in v0.29.0

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

func (*GetAccountResponse) Reset added in v0.29.0

func (x *GetAccountResponse) Reset()

func (*GetAccountResponse) String added in v0.29.0

func (x *GetAccountResponse) String() string

type GetBudgetConfigRequest added in v0.17.0

type GetBudgetConfigRequest struct {

	// Required. Valid values are `aws`, `azure`, and `gcp`.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. Billing group id to retrieve.
	BillingGroupId string `protobuf:"bytes,2,opt,name=billingGroupId,proto3" json:"billingGroupId,omitempty"`
	// Optional. If set, only budget configuration for the specified account is returned.
	AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetBudgetConfig.

func (*GetBudgetConfigRequest) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetBudgetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetBudgetConfigRequest) GetAccountId added in v0.17.0

func (x *GetBudgetConfigRequest) GetAccountId() string

func (*GetBudgetConfigRequest) GetBillingGroupId added in v0.17.0

func (x *GetBudgetConfigRequest) GetBillingGroupId() string

func (*GetBudgetConfigRequest) GetVendor added in v0.17.0

func (x *GetBudgetConfigRequest) GetVendor() string

func (*GetBudgetConfigRequest) ProtoMessage added in v0.17.0

func (*GetBudgetConfigRequest) ProtoMessage()

func (*GetBudgetConfigRequest) ProtoReflect added in v0.17.0

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

func (*GetBudgetConfigRequest) Reset added in v0.17.0

func (x *GetBudgetConfigRequest) Reset()

func (*GetBudgetConfigRequest) String added in v0.17.0

func (x *GetBudgetConfigRequest) String() string

type GetBudgetConfigResponse added in v0.17.0

type GetBudgetConfigResponse struct {
	Data []*api.BudgetConfiguration `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetBudgetConfig. If accountId is specified in the request, only one budget configuration is returned.

func (*GetBudgetConfigResponse) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetBudgetConfigResponse.ProtoReflect.Descriptor instead.

func (*GetBudgetConfigResponse) GetData added in v0.17.0

func (*GetBudgetConfigResponse) ProtoMessage added in v0.17.0

func (*GetBudgetConfigResponse) ProtoMessage()

func (*GetBudgetConfigResponse) ProtoReflect added in v0.17.0

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

func (*GetBudgetConfigResponse) Reset added in v0.17.0

func (x *GetBudgetConfigResponse) Reset()

func (*GetBudgetConfigResponse) String added in v0.17.0

func (x *GetBudgetConfigResponse) String() string

type GetForecastsRequest added in v0.17.0

type GetForecastsRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Optional. Company Id of Billing Group to retrieve.
	// Default value is user's Company Id
	CompanyId string `protobuf:"bytes,2,opt,name=companyId,proto3" json:"companyId,omitempty"`
	// Optional. Forecast frequency. Valid values are `daily` and `monthly`.
	// Default value is `daily`.
	Frequency string `protobuf:"bytes,3,opt,name=frequency,proto3" json:"frequency,omitempty"`
	// Optional. Forecast granularity. Valid values are `account`, `category` and `product`.
	// Default value is `account`.
	Level string `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"`
	// Optional. Starting date to get data.
	// If from_date is less than current date, historical costs are included.
	// If from_date is greater than current date, only forecasted costs are returned.
	// Format: `yyyy-mm-dd`.
	FromDate string `protobuf:"bytes,5,opt,name=fromDate,proto3" json:"fromDate,omitempty"`
	// Optional. Last date to get forecast cost.
	// Currently, we only support 90 days forecasting from the first day of current month.
	// Format: `yyyy-mm-dd`.
	ToDate string `protobuf:"bytes,6,opt,name=toDate,proto3" json:"toDate,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetForecasts per billing group.

func (*GetForecastsRequest) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetForecastsRequest.ProtoReflect.Descriptor instead.

func (*GetForecastsRequest) GetCompanyId added in v0.26.0

func (x *GetForecastsRequest) GetCompanyId() string

func (*GetForecastsRequest) GetFrequency added in v0.17.0

func (x *GetForecastsRequest) GetFrequency() string

func (*GetForecastsRequest) GetFromDate added in v0.17.0

func (x *GetForecastsRequest) GetFromDate() string

func (*GetForecastsRequest) GetLevel added in v0.17.0

func (x *GetForecastsRequest) GetLevel() string

func (*GetForecastsRequest) GetToDate added in v0.17.0

func (x *GetForecastsRequest) GetToDate() string

func (*GetForecastsRequest) GetVendor added in v0.17.0

func (x *GetForecastsRequest) GetVendor() string

func (*GetForecastsRequest) ProtoMessage added in v0.17.0

func (*GetForecastsRequest) ProtoMessage()

func (*GetForecastsRequest) ProtoReflect added in v0.17.0

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

func (*GetForecastsRequest) Reset added in v0.17.0

func (x *GetForecastsRequest) Reset()

func (*GetForecastsRequest) String added in v0.17.0

func (x *GetForecastsRequest) String() string

type GetForecastsResponse added in v0.17.0

type GetForecastsResponse struct {
	Data *api.BillingGroupForecast `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetForecasts per billing group.

func (*GetForecastsResponse) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetForecastsResponse.ProtoReflect.Descriptor instead.

func (*GetForecastsResponse) GetData added in v0.17.0

func (*GetForecastsResponse) ProtoMessage added in v0.17.0

func (*GetForecastsResponse) ProtoMessage()

func (*GetForecastsResponse) ProtoReflect added in v0.17.0

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

func (*GetForecastsResponse) Reset added in v0.17.0

func (x *GetForecastsResponse) Reset()

func (*GetForecastsResponse) String added in v0.17.0

func (x *GetForecastsResponse) String() string

type GetManagementAccountRequest added in v0.9.9

type GetManagementAccountRequest struct {

	// Required. The id of the account to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.GetManagementAccount rpc.

func (*GetManagementAccountRequest) Descriptor deprecated added in v0.9.9

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

Deprecated: Use GetManagementAccountRequest.ProtoReflect.Descriptor instead.

func (*GetManagementAccountRequest) GetId added in v0.9.9

func (*GetManagementAccountRequest) ProtoMessage added in v0.9.9

func (*GetManagementAccountRequest) ProtoMessage()

func (*GetManagementAccountRequest) ProtoReflect added in v0.9.9

func (*GetManagementAccountRequest) Reset added in v0.9.9

func (x *GetManagementAccountRequest) Reset()

func (*GetManagementAccountRequest) String added in v0.9.9

func (x *GetManagementAccountRequest) String() string

type GetManagementAccountUpdateHistoryRequest added in v0.10.2

type GetManagementAccountUpdateHistoryRequest struct {

	// Required. The management account id to query.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional. The month to query. If empty, defaults to current month.
	// Format is `yyyymm`. For example, June 2021 will be `202106`.
	Month string `protobuf:"bytes,2,opt,name=month,proto3" json:"month,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.GetManagementAccountUpdateHistory rpc.

func (*GetManagementAccountUpdateHistoryRequest) Descriptor deprecated added in v0.10.2

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

Deprecated: Use GetManagementAccountUpdateHistoryRequest.ProtoReflect.Descriptor instead.

func (*GetManagementAccountUpdateHistoryRequest) GetId added in v0.10.2

func (*GetManagementAccountUpdateHistoryRequest) GetMonth added in v0.10.2

func (*GetManagementAccountUpdateHistoryRequest) ProtoMessage added in v0.10.2

func (*GetManagementAccountUpdateHistoryRequest) ProtoReflect added in v0.10.2

func (*GetManagementAccountUpdateHistoryRequest) Reset added in v0.10.2

func (*GetManagementAccountUpdateHistoryRequest) String added in v0.10.2

type GetManagementAccountUpdateHistoryResponse added in v0.10.2

type GetManagementAccountUpdateHistoryResponse struct {

	// The management account id being queried.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The month being queried.
	Month string `protobuf:"bytes,2,opt,name=month,proto3" json:"month,omitempty"`
	// The list of timestamps the account was updated and imported.
	Timestamps []string `protobuf:"bytes,3,rep,name=timestamps,proto3" json:"timestamps,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Cost.GetManagementAccountUpdateHistory rpc.

func (*GetManagementAccountUpdateHistoryResponse) Descriptor deprecated added in v0.10.2

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

Deprecated: Use GetManagementAccountUpdateHistoryResponse.ProtoReflect.Descriptor instead.

func (*GetManagementAccountUpdateHistoryResponse) GetId added in v0.10.2

func (*GetManagementAccountUpdateHistoryResponse) GetMonth added in v0.10.2

func (*GetManagementAccountUpdateHistoryResponse) GetTimestamps added in v0.10.2

func (*GetManagementAccountUpdateHistoryResponse) ProtoMessage added in v0.10.2

func (*GetManagementAccountUpdateHistoryResponse) ProtoReflect added in v0.10.2

func (*GetManagementAccountUpdateHistoryResponse) Reset added in v0.10.2

func (*GetManagementAccountUpdateHistoryResponse) String added in v0.10.2

type GetMonthToDateForecastRequest added in v0.17.0

type GetMonthToDateForecastRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Optional. Company Id of Billing Group to retrieve.
	// Default value is user's Company Id
	CompanyId string `protobuf:"bytes,2,opt,name=companyId,proto3" json:"companyId,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetMonthToDateForecast per billing group.

func (*GetMonthToDateForecastRequest) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetMonthToDateForecastRequest.ProtoReflect.Descriptor instead.

func (*GetMonthToDateForecastRequest) GetCompanyId added in v0.26.0

func (x *GetMonthToDateForecastRequest) GetCompanyId() string

func (*GetMonthToDateForecastRequest) GetVendor added in v0.17.0

func (x *GetMonthToDateForecastRequest) GetVendor() string

func (*GetMonthToDateForecastRequest) ProtoMessage added in v0.17.0

func (*GetMonthToDateForecastRequest) ProtoMessage()

func (*GetMonthToDateForecastRequest) ProtoReflect added in v0.17.0

func (*GetMonthToDateForecastRequest) Reset added in v0.17.0

func (x *GetMonthToDateForecastRequest) Reset()

func (*GetMonthToDateForecastRequest) String added in v0.17.0

type GetMonthToDateForecastResponse added in v0.17.0

type GetMonthToDateForecastResponse struct {
	Data *api.BillingGroupMonthToDateForecast `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetMonthToDateForecast per billing group.

func (*GetMonthToDateForecastResponse) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetMonthToDateForecastResponse.ProtoReflect.Descriptor instead.

func (*GetMonthToDateForecastResponse) GetData added in v0.17.0

func (*GetMonthToDateForecastResponse) ProtoMessage added in v0.17.0

func (*GetMonthToDateForecastResponse) ProtoMessage()

func (*GetMonthToDateForecastResponse) ProtoReflect added in v0.17.0

func (*GetMonthToDateForecastResponse) Reset added in v0.17.0

func (x *GetMonthToDateForecastResponse) Reset()

func (*GetMonthToDateForecastResponse) String added in v0.17.0

type GrpcClient

type GrpcClient struct {
	CostClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, opts ...*ClientOptions) (*GrpcClient, error)

NewClient returns a client connection to the 'cost' service.

func (*GrpcClient) Close

func (c *GrpcClient) Close()

type ImportCurFilesRequest added in v0.10.2

type ImportCurFilesRequest struct {

	// Optional. The month to import. If empty, it defaults to the current month.
	// Format is `yyyymm`. For example, June 2021 will be `202106`.
	Month string `protobuf:"bytes,1,opt,name=month,proto3" json:"month,omitempty"`
	// Optional. A comma-separated list of management accounts to import. If empty,
	// all CURs associated with all your management accounts will be imported.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.ImportCurFiles rpc.

func (*ImportCurFilesRequest) Descriptor deprecated added in v0.10.2

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

Deprecated: Use ImportCurFilesRequest.ProtoReflect.Descriptor instead.

func (*ImportCurFilesRequest) GetFilter added in v0.10.2

func (x *ImportCurFilesRequest) GetFilter() string

func (*ImportCurFilesRequest) GetMonth added in v0.10.2

func (x *ImportCurFilesRequest) GetMonth() string

func (*ImportCurFilesRequest) ProtoMessage added in v0.10.2

func (*ImportCurFilesRequest) ProtoMessage()

func (*ImportCurFilesRequest) ProtoReflect added in v0.10.2

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

func (*ImportCurFilesRequest) Reset added in v0.10.2

func (x *ImportCurFilesRequest) Reset()

func (*ImportCurFilesRequest) String added in v0.10.2

func (x *ImportCurFilesRequest) String() string

type ListAccountsRequest added in v0.29.0

type ListAccountsRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.ListAccounts rpc.

func (*ListAccountsRequest) Descriptor deprecated added in v0.29.0

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

Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListAccountsRequest) GetVendor added in v0.29.0

func (x *ListAccountsRequest) GetVendor() string

func (*ListAccountsRequest) ProtoMessage added in v0.29.0

func (*ListAccountsRequest) ProtoMessage()

func (*ListAccountsRequest) ProtoReflect added in v0.29.0

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

func (*ListAccountsRequest) Reset added in v0.29.0

func (x *ListAccountsRequest) Reset()

func (*ListAccountsRequest) String added in v0.29.0

func (x *ListAccountsRequest) String() string

type ListAccountsResponse added in v0.29.0

type ListAccountsResponse struct {
	Aws *aws.Account `protobuf:"bytes,1,opt,name=aws,proto3" json:"aws,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Cost.ListAccounts rpc.

func (*ListAccountsResponse) Descriptor deprecated added in v0.29.0

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

Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListAccountsResponse) GetAws added in v0.29.0

func (x *ListAccountsResponse) GetAws() *aws.Account

func (*ListAccountsResponse) ProtoMessage added in v0.29.0

func (*ListAccountsResponse) ProtoMessage()

func (*ListAccountsResponse) ProtoReflect added in v0.29.0

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

func (*ListAccountsResponse) Reset added in v0.29.0

func (x *ListAccountsResponse) Reset()

func (*ListAccountsResponse) String added in v0.29.0

func (x *ListAccountsResponse) String() string

type ListManagementAccountsRequest added in v0.9.9

type ListManagementAccountsRequest struct {
	// contains filtered or unexported fields
}

Request message for the Cost.ListManagementAccounts rpc.

func (*ListManagementAccountsRequest) Descriptor deprecated added in v0.9.9

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

Deprecated: Use ListManagementAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListManagementAccountsRequest) ProtoMessage added in v0.9.9

func (*ListManagementAccountsRequest) ProtoMessage()

func (*ListManagementAccountsRequest) ProtoReflect added in v0.9.9

func (*ListManagementAccountsRequest) Reset added in v0.9.9

func (x *ListManagementAccountsRequest) Reset()

func (*ListManagementAccountsRequest) String added in v0.9.9

type ReadAdjustmentsRequest

type ReadAdjustmentsRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Optional. If set, reads the non-usage-based adjustment details of this billing group.
	// Valid only if `accountId` is not set. If both `companyId` and `accountId` are not
	// set, reads the adjustment details of the whole organization.
	// Only valid for Ripple users. Implied (or discarded) for Wave(Pro) users.
	CompanyId string `protobuf:"bytes,2,opt,name=companyId,proto3" json:"companyId,omitempty"`
	// Optional. If set, reads the non-usaged-based adjustment details of this account. Also
	// invalidates the `billingGroupId` value even if set. If both `billingGroupId` and
	// `accountId` are not set, reads the adjustment details of the whole organization.
	AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	// Optional. Timestamp to start streaming data from. If not set, the first day of the
	// current month will be used. Format: `yyyymmdd`.
	StartTime string `protobuf:"bytes,4,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	// Format: `yyyymmdd`.
	EndTime string `protobuf:"bytes,5,opt,name=endTime,proto3" json:"endTime,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.ReadAdjustments rpc.

func (*ReadAdjustmentsRequest) Descriptor deprecated

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

Deprecated: Use ReadAdjustmentsRequest.ProtoReflect.Descriptor instead.

func (*ReadAdjustmentsRequest) GetAccountId added in v0.21.0

func (x *ReadAdjustmentsRequest) GetAccountId() string

func (*ReadAdjustmentsRequest) GetCompanyId added in v0.23.0

func (x *ReadAdjustmentsRequest) GetCompanyId() string

func (*ReadAdjustmentsRequest) GetEndTime

func (x *ReadAdjustmentsRequest) GetEndTime() string

func (*ReadAdjustmentsRequest) GetStartTime

func (x *ReadAdjustmentsRequest) GetStartTime() string

func (*ReadAdjustmentsRequest) GetVendor

func (x *ReadAdjustmentsRequest) GetVendor() string

func (*ReadAdjustmentsRequest) ProtoMessage

func (*ReadAdjustmentsRequest) ProtoMessage()

func (*ReadAdjustmentsRequest) ProtoReflect

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

func (*ReadAdjustmentsRequest) Reset

func (x *ReadAdjustmentsRequest) Reset()

func (*ReadAdjustmentsRequest) String

func (x *ReadAdjustmentsRequest) String() string

type ReadBillingGroupNonTagCostsRequest added in v0.29.0

type ReadBillingGroupNonTagCostsRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. The company id to stream.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Optional. Timestamp to start streaming data from. If not set, the first day of the
	// current month will be used. Format: `yyyymmdd`.
	StartTime string `protobuf:"bytes,3,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	// Format: `yyyymmdd`.
	EndTime string `protobuf:"bytes,4,opt,name=endTime,proto3" json:"endTime,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.ReadBillingGroupNonTagCosts rpc.

func (*ReadBillingGroupNonTagCostsRequest) Descriptor deprecated added in v0.29.0

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

Deprecated: Use ReadBillingGroupNonTagCostsRequest.ProtoReflect.Descriptor instead.

func (*ReadBillingGroupNonTagCostsRequest) GetEndTime added in v0.29.0

func (*ReadBillingGroupNonTagCostsRequest) GetId added in v0.29.0

func (*ReadBillingGroupNonTagCostsRequest) GetStartTime added in v0.29.0

func (x *ReadBillingGroupNonTagCostsRequest) GetStartTime() string

func (*ReadBillingGroupNonTagCostsRequest) GetVendor added in v0.29.0

func (*ReadBillingGroupNonTagCostsRequest) ProtoMessage added in v0.29.0

func (*ReadBillingGroupNonTagCostsRequest) ProtoMessage()

func (*ReadBillingGroupNonTagCostsRequest) ProtoReflect added in v0.29.0

func (*ReadBillingGroupNonTagCostsRequest) Reset added in v0.29.0

func (*ReadBillingGroupNonTagCostsRequest) String added in v0.29.0

type ReadBillingGroupTagCostsRequest added in v0.10.1

type ReadBillingGroupTagCostsRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. The company id to stream.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Optional. Timestamp to start streaming data from. If not set, the first day of the
	// current month will be used. Format: `yyyymmdd`.
	StartTime string `protobuf:"bytes,3,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	// Format: `yyyymmdd`.
	EndTime string `protobuf:"bytes,4,opt,name=endTime,proto3" json:"endTime,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.ReadBillingGroupTagCosts rpc.

func (*ReadBillingGroupTagCostsRequest) Descriptor deprecated added in v0.10.1

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

Deprecated: Use ReadBillingGroupTagCostsRequest.ProtoReflect.Descriptor instead.

func (*ReadBillingGroupTagCostsRequest) GetEndTime added in v0.10.1

func (x *ReadBillingGroupTagCostsRequest) GetEndTime() string

func (*ReadBillingGroupTagCostsRequest) GetId added in v0.14.0

func (*ReadBillingGroupTagCostsRequest) GetStartTime added in v0.10.1

func (x *ReadBillingGroupTagCostsRequest) GetStartTime() string

func (*ReadBillingGroupTagCostsRequest) GetVendor added in v0.10.1

func (x *ReadBillingGroupTagCostsRequest) GetVendor() string

func (*ReadBillingGroupTagCostsRequest) ProtoMessage added in v0.10.1

func (*ReadBillingGroupTagCostsRequest) ProtoMessage()

func (*ReadBillingGroupTagCostsRequest) ProtoReflect added in v0.10.1

func (*ReadBillingGroupTagCostsRequest) Reset added in v0.10.1

func (*ReadBillingGroupTagCostsRequest) String added in v0.10.1

type ReadCostsRequest

type ReadCostsRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Optional. If set, reads the usage-based cost details of this billing group. Valid
	// only if `accountId` is not set. If both `companyId` and `accountId` are not set,
	// reads the usage-based cost details of the whole organization.
	// Only valid for Ripple users. Implied (or discarded) for Wave(Pro) users.
	CompanyId string `protobuf:"bytes,2,opt,name=companyId,proto3" json:"companyId,omitempty"`
	// Optional. If set, reads the usage-based cost details of this account. Also invalidates
	// the `billingGroupId` value even if set. If both `billingGroupId` and `accountId` are
	// not set, reads the usage-based cost details of the whole organization.
	AccountId string `protobuf:"bytes,3,opt,name=accountId,proto3" json:"accountId,omitempty"`
	// Optional. Timestamp to start streaming data from. If not set, the first day of the
	// current month will be used. Format: yyyymmdd.
	StartTime string `protobuf:"bytes,4,opt,name=startTime,proto3" json:"startTime,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	// Format: `yyyymmd`.
	EndTime string `protobuf:"bytes,5,opt,name=endTime,proto3" json:"endTime,omitempty"`
	// Optional. AWS-specific request options.
	AwsOptions *AwsOptions `protobuf:"bytes,6,opt,name=awsOptions,proto3" json:"awsOptions,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Cost.ReadCosts rpc.

func (*ReadCostsRequest) Descriptor deprecated

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

Deprecated: Use ReadCostsRequest.ProtoReflect.Descriptor instead.

func (*ReadCostsRequest) GetAccountId added in v0.21.0

func (x *ReadCostsRequest) GetAccountId() string

func (*ReadCostsRequest) GetAwsOptions added in v0.9.1

func (x *ReadCostsRequest) GetAwsOptions() *AwsOptions

func (*ReadCostsRequest) GetCompanyId added in v0.23.0

func (x *ReadCostsRequest) GetCompanyId() string

func (*ReadCostsRequest) GetEndTime

func (x *ReadCostsRequest) GetEndTime() string

func (*ReadCostsRequest) GetStartTime

func (x *ReadCostsRequest) GetStartTime() string

func (*ReadCostsRequest) GetVendor

func (x *ReadCostsRequest) GetVendor() string

func (*ReadCostsRequest) ProtoMessage

func (*ReadCostsRequest) ProtoMessage()

func (*ReadCostsRequest) ProtoReflect

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

func (*ReadCostsRequest) Reset

func (x *ReadCostsRequest) Reset()

func (*ReadCostsRequest) String

func (x *ReadCostsRequest) String() string

type UnimplementedCostServer

type UnimplementedCostServer struct {
}

UnimplementedCostServer must be embedded to have forward compatible implementations.

func (UnimplementedCostServer) CalculateCosts added in v0.10.2

func (UnimplementedCostServer) CreateAccount added in v0.29.0

func (UnimplementedCostServer) CreateBudgetConfig added in v0.17.0

func (UnimplementedCostServer) CreateManagementAccount added in v0.10.0

func (UnimplementedCostServer) DeleteAccount added in v0.29.0

func (UnimplementedCostServer) DeleteManagementAccount added in v0.10.0

func (UnimplementedCostServer) GetAccount added in v0.29.0

func (UnimplementedCostServer) GetBudgetConfig added in v0.17.0

func (UnimplementedCostServer) GetForecasts added in v0.17.0

func (UnimplementedCostServer) GetManagementAccount added in v0.9.9

func (UnimplementedCostServer) GetMonthToDateForecast added in v0.17.0

func (UnimplementedCostServer) ImportCurFiles added in v0.10.2

func (UnimplementedCostServer) ListAccounts added in v0.29.0

func (UnimplementedCostServer) ListManagementAccounts added in v0.9.9

func (UnimplementedCostServer) ReadAdjustments

func (UnimplementedCostServer) ReadBillingGroupNonTagCosts added in v0.29.0

func (UnimplementedCostServer) ReadBillingGroupTagCosts added in v0.10.1

func (UnimplementedCostServer) ReadCosts

func (UnimplementedCostServer) UpdateBudgetConfig added in v0.17.0

type UnsafeCostServer

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

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

type UpdateBudgetConfigRequest added in v0.17.0

type UpdateBudgetConfigRequest struct {

	// Required. At the moment, only `aws` is supported.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Required. Budget configuration id to update.
	BudgetConfigId string `protobuf:"bytes,2,opt,name=budgetConfigId,proto3" json:"budgetConfigId,omitempty"`
	// Required. Budget configuration with update information.
	BudgetConfig *api.BudgetConfiguration `protobuf:"bytes,3,opt,name=budgetConfig,proto3" json:"budgetConfig,omitempty"`
	// contains filtered or unexported fields
}

Request message for UpdateBudgetConfig.

func (*UpdateBudgetConfigRequest) Descriptor deprecated added in v0.17.0

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

Deprecated: Use UpdateBudgetConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateBudgetConfigRequest) GetBudgetConfig added in v0.17.0

func (x *UpdateBudgetConfigRequest) GetBudgetConfig() *api.BudgetConfiguration

func (*UpdateBudgetConfigRequest) GetBudgetConfigId added in v0.17.0

func (x *UpdateBudgetConfigRequest) GetBudgetConfigId() string

func (*UpdateBudgetConfigRequest) GetVendor added in v0.17.0

func (x *UpdateBudgetConfigRequest) GetVendor() string

func (*UpdateBudgetConfigRequest) ProtoMessage added in v0.17.0

func (*UpdateBudgetConfigRequest) ProtoMessage()

func (*UpdateBudgetConfigRequest) ProtoReflect added in v0.17.0

func (*UpdateBudgetConfigRequest) Reset added in v0.17.0

func (x *UpdateBudgetConfigRequest) Reset()

func (*UpdateBudgetConfigRequest) String added in v0.17.0

func (x *UpdateBudgetConfigRequest) String() string

Jump to

Keyboard shortcuts

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