Documentation ¶
Overview ¶
Package cost is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCostHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCostHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CostClient) error
- func RegisterCostHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCostHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CostServer) error
- func RegisterCostServer(s grpc.ServiceRegistrar, srv CostServer)
- type AdjustmentItem
- type AwsOptions
- func (*AwsOptions) Descriptor() ([]byte, []int)deprecated
- func (x *AwsOptions) GetIncludeCostCategories() bool
- func (x *AwsOptions) GetIncludeTags() bool
- func (*AwsOptions) ProtoMessage()
- func (x *AwsOptions) ProtoReflect() protoreflect.Message
- func (x *AwsOptions) Reset()
- func (x *AwsOptions) String() string
- type CalculateCostsRequest
- func (*CalculateCostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateCostsRequest) GetBillingGroup() string
- func (x *CalculateCostsRequest) GetMonth() string
- func (x *CalculateCostsRequest) GetVendor() string
- func (*CalculateCostsRequest) ProtoMessage()
- func (x *CalculateCostsRequest) ProtoReflect() protoreflect.Message
- func (x *CalculateCostsRequest) Reset()
- func (x *CalculateCostsRequest) String() string
- type ClientOptions
- type CostClient
- type CostItem
- type CostServer
- type Cost_ReadAccountAdjustmentsClient
- type Cost_ReadAccountAdjustmentsServer
- type Cost_ReadAccountCostsClient
- type Cost_ReadAccountCostsServer
- type Cost_ReadAccountTagCostsClient
- type Cost_ReadAccountTagCostsServer
- type Cost_ReadAdjustmentsClient
- type Cost_ReadAdjustmentsServer
- type Cost_ReadBillingGroupAdjustmentsClient
- type Cost_ReadBillingGroupAdjustmentsServer
- type Cost_ReadBillingGroupCostsClient
- type Cost_ReadBillingGroupCostsServer
- type Cost_ReadBillingGroupTagCostsClient
- type Cost_ReadBillingGroupTagCostsServer
- type Cost_ReadCostsClient
- type Cost_ReadCostsServer
- type CreateManagementAccountRequest
- func (*CreateManagementAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateManagementAccountRequest) GetBucketName() string
- func (x *CreateManagementAccountRequest) GetId() string
- func (x *CreateManagementAccountRequest) GetName() string
- func (x *CreateManagementAccountRequest) GetPrefix() string
- func (x *CreateManagementAccountRequest) GetReportName() string
- func (x *CreateManagementAccountRequest) GetRoleArn() string
- func (*CreateManagementAccountRequest) ProtoMessage()
- func (x *CreateManagementAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CreateManagementAccountRequest) Reset()
- func (x *CreateManagementAccountRequest) String() string
- type DeleteManagementAccountRequest
- func (*DeleteManagementAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteManagementAccountRequest) GetId() string
- func (*DeleteManagementAccountRequest) ProtoMessage()
- func (x *DeleteManagementAccountRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteManagementAccountRequest) Reset()
- func (x *DeleteManagementAccountRequest) String() string
- type GetManagementAccountRequest
- func (*GetManagementAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetManagementAccountRequest) GetId() string
- func (*GetManagementAccountRequest) ProtoMessage()
- func (x *GetManagementAccountRequest) ProtoReflect() protoreflect.Message
- func (x *GetManagementAccountRequest) Reset()
- func (x *GetManagementAccountRequest) String() string
- type GetManagementAccountUpdateHistoryRequest
- func (*GetManagementAccountUpdateHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetManagementAccountUpdateHistoryRequest) GetId() string
- func (x *GetManagementAccountUpdateHistoryRequest) GetMonth() string
- func (*GetManagementAccountUpdateHistoryRequest) ProtoMessage()
- func (x *GetManagementAccountUpdateHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetManagementAccountUpdateHistoryRequest) Reset()
- func (x *GetManagementAccountUpdateHistoryRequest) String() string
- type GetManagementAccountUpdateHistoryResponse
- func (*GetManagementAccountUpdateHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetManagementAccountUpdateHistoryResponse) GetId() string
- func (x *GetManagementAccountUpdateHistoryResponse) GetMonth() string
- func (x *GetManagementAccountUpdateHistoryResponse) GetTimestamps() []string
- func (*GetManagementAccountUpdateHistoryResponse) ProtoMessage()
- func (x *GetManagementAccountUpdateHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetManagementAccountUpdateHistoryResponse) Reset()
- func (x *GetManagementAccountUpdateHistoryResponse) String() string
- type GrpcClient
- type ImportCurFilesRequest
- func (*ImportCurFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportCurFilesRequest) GetFilter() string
- func (x *ImportCurFilesRequest) GetMonth() string
- func (*ImportCurFilesRequest) ProtoMessage()
- func (x *ImportCurFilesRequest) ProtoReflect() protoreflect.Message
- func (x *ImportCurFilesRequest) Reset()
- func (x *ImportCurFilesRequest) String() string
- type ListManagementAccountsRequest
- func (*ListManagementAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListManagementAccountsRequest) ProtoMessage()
- func (x *ListManagementAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *ListManagementAccountsRequest) Reset()
- func (x *ListManagementAccountsRequest) String() string
- type ListManagementAccountsResponse
- func (*ListManagementAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListManagementAccountsResponse) GetAccounts() []*aws.Account
- func (*ListManagementAccountsResponse) ProtoMessage()
- func (x *ListManagementAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *ListManagementAccountsResponse) Reset()
- func (x *ListManagementAccountsResponse) String() string
- type ReadAccountAdjustmentsRequest
- func (*ReadAccountAdjustmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadAccountAdjustmentsRequest) GetEndTime() string
- func (x *ReadAccountAdjustmentsRequest) GetId() string
- func (x *ReadAccountAdjustmentsRequest) GetStartTime() string
- func (x *ReadAccountAdjustmentsRequest) GetVendor() string
- func (*ReadAccountAdjustmentsRequest) ProtoMessage()
- func (x *ReadAccountAdjustmentsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadAccountAdjustmentsRequest) Reset()
- func (x *ReadAccountAdjustmentsRequest) String() string
- type ReadAccountCostsRequest
- func (*ReadAccountCostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadAccountCostsRequest) GetAwsOptions() *AwsOptions
- func (x *ReadAccountCostsRequest) GetEndTime() string
- func (x *ReadAccountCostsRequest) GetId() string
- func (x *ReadAccountCostsRequest) GetStartTime() string
- func (x *ReadAccountCostsRequest) GetVendor() string
- func (*ReadAccountCostsRequest) ProtoMessage()
- func (x *ReadAccountCostsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadAccountCostsRequest) Reset()
- func (x *ReadAccountCostsRequest) String() string
- type ReadAccountTagCostsRequest
- func (*ReadAccountTagCostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadAccountTagCostsRequest) GetEndTime() string
- func (x *ReadAccountTagCostsRequest) GetId() string
- func (x *ReadAccountTagCostsRequest) GetStartTime() string
- func (x *ReadAccountTagCostsRequest) GetVendor() string
- func (*ReadAccountTagCostsRequest) ProtoMessage()
- func (x *ReadAccountTagCostsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadAccountTagCostsRequest) Reset()
- func (x *ReadAccountTagCostsRequest) String() string
- type ReadAdjustmentsRequest
- func (*ReadAdjustmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadAdjustmentsRequest) GetEndTime() string
- func (x *ReadAdjustmentsRequest) GetStartTime() string
- func (x *ReadAdjustmentsRequest) GetVendor() string
- func (*ReadAdjustmentsRequest) ProtoMessage()
- func (x *ReadAdjustmentsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadAdjustmentsRequest) Reset()
- func (x *ReadAdjustmentsRequest) String() string
- type ReadBillingGroupAdjustmentsRequest
- func (*ReadBillingGroupAdjustmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadBillingGroupAdjustmentsRequest) GetEndTime() string
- func (x *ReadBillingGroupAdjustmentsRequest) GetName() string
- func (x *ReadBillingGroupAdjustmentsRequest) GetStartTime() string
- func (x *ReadBillingGroupAdjustmentsRequest) GetVendor() string
- func (*ReadBillingGroupAdjustmentsRequest) ProtoMessage()
- func (x *ReadBillingGroupAdjustmentsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadBillingGroupAdjustmentsRequest) Reset()
- func (x *ReadBillingGroupAdjustmentsRequest) String() string
- type ReadBillingGroupCostsRequest
- func (*ReadBillingGroupCostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadBillingGroupCostsRequest) GetAwsOptions() *AwsOptions
- func (x *ReadBillingGroupCostsRequest) GetEndTime() string
- func (x *ReadBillingGroupCostsRequest) GetName() string
- func (x *ReadBillingGroupCostsRequest) GetStartTime() string
- func (x *ReadBillingGroupCostsRequest) GetVendor() string
- func (*ReadBillingGroupCostsRequest) ProtoMessage()
- func (x *ReadBillingGroupCostsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadBillingGroupCostsRequest) Reset()
- func (x *ReadBillingGroupCostsRequest) String() string
- type ReadBillingGroupTagCostsRequest
- func (*ReadBillingGroupTagCostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadBillingGroupTagCostsRequest) GetEndTime() string
- func (x *ReadBillingGroupTagCostsRequest) GetName() string
- func (x *ReadBillingGroupTagCostsRequest) GetStartTime() string
- func (x *ReadBillingGroupTagCostsRequest) GetVendor() string
- func (*ReadBillingGroupTagCostsRequest) ProtoMessage()
- func (x *ReadBillingGroupTagCostsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadBillingGroupTagCostsRequest) Reset()
- func (x *ReadBillingGroupTagCostsRequest) String() string
- type ReadCostsRequest
- func (*ReadCostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadCostsRequest) GetAwsOptions() *AwsOptions
- func (x *ReadCostsRequest) GetEndTime() string
- func (x *ReadCostsRequest) GetStartTime() string
- func (x *ReadCostsRequest) GetVendor() string
- func (*ReadCostsRequest) ProtoMessage()
- func (x *ReadCostsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadCostsRequest) Reset()
- func (x *ReadCostsRequest) String() string
- type UnimplementedCostServer
- func (UnimplementedCostServer) CalculateCosts(context.Context, *CalculateCostsRequest) (*api.Operation, error)
- func (UnimplementedCostServer) CreateManagementAccount(context.Context, *CreateManagementAccountRequest) (*aws.Account, error)
- func (UnimplementedCostServer) DeleteManagementAccount(context.Context, *DeleteManagementAccountRequest) (*emptypb.Empty, error)
- func (UnimplementedCostServer) GetManagementAccount(context.Context, *GetManagementAccountRequest) (*aws.Account, error)
- func (UnimplementedCostServer) GetManagementAccountUpdateHistory(context.Context, *GetManagementAccountUpdateHistoryRequest) (*GetManagementAccountUpdateHistoryResponse, error)
- func (UnimplementedCostServer) ImportCurFiles(context.Context, *ImportCurFilesRequest) (*api.Operation, error)
- func (UnimplementedCostServer) ListManagementAccounts(context.Context, *ListManagementAccountsRequest) (*ListManagementAccountsResponse, error)
- func (UnimplementedCostServer) ReadAccountAdjustments(*ReadAccountAdjustmentsRequest, Cost_ReadAccountAdjustmentsServer) error
- func (UnimplementedCostServer) ReadAccountCosts(*ReadAccountCostsRequest, Cost_ReadAccountCostsServer) error
- func (UnimplementedCostServer) ReadAccountTagCosts(*ReadAccountTagCostsRequest, Cost_ReadAccountTagCostsServer) error
- func (UnimplementedCostServer) ReadAdjustments(*ReadAdjustmentsRequest, Cost_ReadAdjustmentsServer) error
- func (UnimplementedCostServer) ReadBillingGroupAdjustments(*ReadBillingGroupAdjustmentsRequest, Cost_ReadBillingGroupAdjustmentsServer) error
- func (UnimplementedCostServer) ReadBillingGroupCosts(*ReadBillingGroupCostsRequest, Cost_ReadBillingGroupCostsServer) error
- func (UnimplementedCostServer) ReadBillingGroupTagCosts(*ReadBillingGroupTagCostsRequest, Cost_ReadBillingGroupTagCostsServer) error
- func (UnimplementedCostServer) ReadCosts(*ReadCostsRequest, Cost_ReadCostsServer) error
- type UnsafeCostServer
Constants ¶
This section is empty.
Variables ¶
var Cost_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blueapi.cost.v1.Cost", HandlerType: (*CostServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListManagementAccounts", Handler: _Cost_ListManagementAccounts_Handler, }, { 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: "ImportCurFiles", Handler: _Cost_ImportCurFiles_Handler, }, { MethodName: "CalculateCosts", Handler: _Cost_CalculateCosts_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ReadCosts", Handler: _Cost_ReadCosts_Handler, ServerStreams: true, }, { StreamName: "ReadBillingGroupCosts", Handler: _Cost_ReadBillingGroupCosts_Handler, ServerStreams: true, }, { StreamName: "ReadAccountCosts", Handler: _Cost_ReadAccountCosts_Handler, ServerStreams: true, }, { StreamName: "ReadAdjustments", Handler: _Cost_ReadAdjustments_Handler, ServerStreams: true, }, { StreamName: "ReadBillingGroupAdjustments", Handler: _Cost_ReadBillingGroupAdjustments_Handler, ServerStreams: true, }, { StreamName: "ReadAccountAdjustments", Handler: _Cost_ReadAccountAdjustments_Handler, ServerStreams: true, }, { StreamName: "ReadBillingGroupTagCosts", Handler: _Cost_ReadBillingGroupTagCosts_Handler, ServerStreams: true, }, { StreamName: "ReadAccountTagCosts", Handler: _Cost_ReadAccountTagCosts_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)
var File_cost_v1_cost_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCostHandler ¶
RegisterCostHandler registers the http handlers for service Cost to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCostHandlerClient ¶
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 ¶
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=include_tags,proto3" json:"include_tags,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=include_cost_categories,proto3" json:"include_cost_categories,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. Valid values are `aws`, `azure`, and `gcp`. 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. BillingGroup string `protobuf:"bytes,2,opt,name=billing_group,proto3" json:"billing_group,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) GetBillingGroup ¶ added in v0.10.2
func (x *CalculateCostsRequest) GetBillingGroup() 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. ListManagementAccounts(ctx context.Context, in *ListManagementAccountsRequest, opts ...grpc.CallOption) (*ListManagementAccountsResponse, error) // Gets an AWS management account. This call 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, 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'. 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) // Initiates an ondemand import of all registered CUR files. ImportCurFiles(ctx context.Context, in *ImportCurFilesRequest, opts ...grpc.CallOption) (*api.Operation, error) // Triggers monthly calculations for costs and invoice 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 company (Wave). // At the moment, the supported {vendor} is 'aws'. If datetime range parameters are // not set, month-to-date (current month) will be returned. Date range parameters // are 'start_time' and 'end_time, with the 'yyyymmdd' format. ReadCosts(ctx context.Context, in *ReadCostsRequest, opts ...grpc.CallOption) (Cost_ReadCostsClient, error) // Reads the usage-based cost details 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. ReadBillingGroupCosts(ctx context.Context, in *ReadBillingGroupCostsRequest, opts ...grpc.CallOption) (Cost_ReadBillingGroupCostsClient, error) // Reads the usage-based cost details of an account. At the moment, the supported // {vendor} is 'aws'. If datetime range parameters are not set, month-to-date // (current month) will be returned. ReadAccountCosts(ctx context.Context, in *ReadAccountCostsRequest, opts ...grpc.CallOption) (Cost_ReadAccountCostsClient, error) // Reads the non-usage-based details of an organization (Ripple) or company (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 non-usage-based details of a billing group. 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. ReadBillingGroupAdjustments(ctx context.Context, in *ReadBillingGroupAdjustmentsRequest, opts ...grpc.CallOption) (Cost_ReadBillingGroupAdjustmentsClient, error) // Reads the non-usaged-based details of an AWS account. 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. ReadAccountAdjustments(ctx context.Context, in *ReadAccountAdjustmentsRequest, opts ...grpc.CallOption) (Cost_ReadAccountAdjustmentsClient, 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 tag costs of an AWS account. At the moment, the supported {vendor} is // 'aws'. If datetime range parameters are not set, month-to-date (current month) will be returned. ReadAccountTagCosts(ctx context.Context, in *ReadAccountTagCostsRequest, opts ...grpc.CallOption) (Cost_ReadAccountTagCostsClient, 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) ProtoMessage ¶
func (*CostItem) ProtoMessage()
func (*CostItem) ProtoReflect ¶
func (x *CostItem) ProtoReflect() protoreflect.Message
type CostServer ¶
type CostServer interface { // Lists AWS management accounts. ListManagementAccounts(context.Context, *ListManagementAccountsRequest) (*ListManagementAccountsResponse, error) // Gets an AWS management account. This call 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, 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'. CreateManagementAccount(context.Context, *CreateManagementAccountRequest) (*aws.Account, error) // Deletes an AWS management account. DeleteManagementAccount(context.Context, *DeleteManagementAccountRequest) (*emptypb.Empty, error) // Initiates an ondemand import of all registered CUR files. ImportCurFiles(context.Context, *ImportCurFilesRequest) (*api.Operation, error) // Triggers monthly calculations for costs and invoice 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 company (Wave). // At the moment, the supported {vendor} is 'aws'. If datetime range parameters are // not set, month-to-date (current month) will be returned. Date range parameters // are 'start_time' and 'end_time, with the 'yyyymmdd' format. ReadCosts(*ReadCostsRequest, Cost_ReadCostsServer) error // Reads the usage-based cost details 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. ReadBillingGroupCosts(*ReadBillingGroupCostsRequest, Cost_ReadBillingGroupCostsServer) error // Reads the usage-based cost details of an account. At the moment, the supported // {vendor} is 'aws'. If datetime range parameters are not set, month-to-date // (current month) will be returned. ReadAccountCosts(*ReadAccountCostsRequest, Cost_ReadAccountCostsServer) error // Reads the non-usage-based details of an organization (Ripple) or company (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 non-usage-based details of a billing group. 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. ReadBillingGroupAdjustments(*ReadBillingGroupAdjustmentsRequest, Cost_ReadBillingGroupAdjustmentsServer) error // Reads the non-usaged-based details of an AWS account. 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. ReadAccountAdjustments(*ReadAccountAdjustmentsRequest, Cost_ReadAccountAdjustmentsServer) 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 tag costs of an AWS account. At the moment, the supported {vendor} is // 'aws'. If datetime range parameters are not set, month-to-date (current month) will be returned. ReadAccountTagCosts(*ReadAccountTagCostsRequest, Cost_ReadAccountTagCostsServer) error // contains filtered or unexported methods }
CostServer is the server API for Cost service. All implementations must embed UnimplementedCostServer for forward compatibility
type Cost_ReadAccountAdjustmentsClient ¶
type Cost_ReadAccountAdjustmentsClient interface { Recv() (*AdjustmentItem, error) grpc.ClientStream }
type Cost_ReadAccountAdjustmentsServer ¶
type Cost_ReadAccountAdjustmentsServer interface { Send(*AdjustmentItem) error grpc.ServerStream }
type Cost_ReadAccountCostsClient ¶
type Cost_ReadAccountCostsClient interface { Recv() (*CostItem, error) grpc.ClientStream }
type Cost_ReadAccountCostsServer ¶
type Cost_ReadAccountCostsServer interface { Send(*CostItem) error grpc.ServerStream }
type Cost_ReadAccountTagCostsClient ¶ added in v0.10.1
type Cost_ReadAccountTagCostsClient interface { Recv() (*CostItem, error) grpc.ClientStream }
type Cost_ReadAccountTagCostsServer ¶ added in v0.10.1
type Cost_ReadAccountTagCostsServer interface { Send(*CostItem) 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_ReadBillingGroupAdjustmentsClient ¶
type Cost_ReadBillingGroupAdjustmentsClient interface { Recv() (*AdjustmentItem, error) grpc.ClientStream }
type Cost_ReadBillingGroupAdjustmentsServer ¶
type Cost_ReadBillingGroupAdjustmentsServer interface { Send(*AdjustmentItem) error grpc.ServerStream }
type Cost_ReadBillingGroupCostsClient ¶
type Cost_ReadBillingGroupCostsClient interface { Recv() (*CostItem, error) grpc.ClientStream }
type Cost_ReadBillingGroupCostsServer ¶
type Cost_ReadBillingGroupCostsServer 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 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=bucket_name,proto3" json:"bucket_name,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=report_name,proto3" json:"report_name,omitempty"` // Required. Role ARN. RoleArn string `protobuf:"bytes,6,opt,name=role_arn,proto3" json:"role_arn,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 (x *CreateManagementAccountRequest) GetId() string
func (*CreateManagementAccountRequest) GetName ¶ added in v0.10.0
func (x *CreateManagementAccountRequest) GetName() string
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 (x *CreateManagementAccountRequest) ProtoReflect() protoreflect.Message
func (*CreateManagementAccountRequest) Reset ¶ added in v0.10.0
func (x *CreateManagementAccountRequest) Reset()
func (*CreateManagementAccountRequest) String ¶ added in v0.10.0
func (x *CreateManagementAccountRequest) 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 (x *DeleteManagementAccountRequest) GetId() string
func (*DeleteManagementAccountRequest) ProtoMessage ¶ added in v0.10.0
func (*DeleteManagementAccountRequest) ProtoMessage()
func (*DeleteManagementAccountRequest) ProtoReflect ¶ added in v0.10.0
func (x *DeleteManagementAccountRequest) ProtoReflect() protoreflect.Message
func (*DeleteManagementAccountRequest) Reset ¶ added in v0.10.0
func (x *DeleteManagementAccountRequest) Reset()
func (*DeleteManagementAccountRequest) String ¶ added in v0.10.0
func (x *DeleteManagementAccountRequest) 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 (x *GetManagementAccountRequest) GetId() string
func (*GetManagementAccountRequest) ProtoMessage ¶ added in v0.9.9
func (*GetManagementAccountRequest) ProtoMessage()
func (*GetManagementAccountRequest) ProtoReflect ¶ added in v0.9.9
func (x *GetManagementAccountRequest) ProtoReflect() protoreflect.Message
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 (x *GetManagementAccountUpdateHistoryRequest) GetId() string
func (*GetManagementAccountUpdateHistoryRequest) GetMonth ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryRequest) GetMonth() string
func (*GetManagementAccountUpdateHistoryRequest) ProtoMessage ¶ added in v0.10.2
func (*GetManagementAccountUpdateHistoryRequest) ProtoMessage()
func (*GetManagementAccountUpdateHistoryRequest) ProtoReflect ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetManagementAccountUpdateHistoryRequest) Reset ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryRequest) Reset()
func (*GetManagementAccountUpdateHistoryRequest) String ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryRequest) String() string
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 (x *GetManagementAccountUpdateHistoryResponse) GetId() string
func (*GetManagementAccountUpdateHistoryResponse) GetMonth ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryResponse) GetMonth() string
func (*GetManagementAccountUpdateHistoryResponse) GetTimestamps ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryResponse) GetTimestamps() []string
func (*GetManagementAccountUpdateHistoryResponse) ProtoMessage ¶ added in v0.10.2
func (*GetManagementAccountUpdateHistoryResponse) ProtoMessage()
func (*GetManagementAccountUpdateHistoryResponse) ProtoReflect ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetManagementAccountUpdateHistoryResponse) Reset ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryResponse) Reset()
func (*GetManagementAccountUpdateHistoryResponse) String ¶ added in v0.10.2
func (x *GetManagementAccountUpdateHistoryResponse) String() string
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 will 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 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 (x *ListManagementAccountsRequest) ProtoReflect() protoreflect.Message
func (*ListManagementAccountsRequest) Reset ¶ added in v0.9.9
func (x *ListManagementAccountsRequest) Reset()
func (*ListManagementAccountsRequest) String ¶ added in v0.9.9
func (x *ListManagementAccountsRequest) String() string
type ListManagementAccountsResponse ¶ added in v0.9.9
type ListManagementAccountsResponse struct { Accounts []*aws.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
Response message for the Organization.ListManagementAccounts rpc.
func (*ListManagementAccountsResponse) Descriptor
deprecated
added in
v0.9.9
func (*ListManagementAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListManagementAccountsResponse.ProtoReflect.Descriptor instead.
func (*ListManagementAccountsResponse) GetAccounts ¶ added in v0.9.9
func (x *ListManagementAccountsResponse) GetAccounts() []*aws.Account
func (*ListManagementAccountsResponse) ProtoMessage ¶ added in v0.9.9
func (*ListManagementAccountsResponse) ProtoMessage()
func (*ListManagementAccountsResponse) ProtoReflect ¶ added in v0.9.9
func (x *ListManagementAccountsResponse) ProtoReflect() protoreflect.Message
func (*ListManagementAccountsResponse) Reset ¶ added in v0.9.9
func (x *ListManagementAccountsResponse) Reset()
func (*ListManagementAccountsResponse) String ¶ added in v0.9.9
func (x *ListManagementAccountsResponse) String() string
type ReadAccountAdjustmentsRequest ¶
type ReadAccountAdjustmentsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // Required. The AWS account 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=start_time,proto3" json:"start_time,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=end_time,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
Request message for the Cost.ReadAccountAdjustments rpc.
func (*ReadAccountAdjustmentsRequest) Descriptor
deprecated
func (*ReadAccountAdjustmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadAccountAdjustmentsRequest.ProtoReflect.Descriptor instead.
func (*ReadAccountAdjustmentsRequest) GetEndTime ¶
func (x *ReadAccountAdjustmentsRequest) GetEndTime() string
func (*ReadAccountAdjustmentsRequest) GetId ¶ added in v0.10.1
func (x *ReadAccountAdjustmentsRequest) GetId() string
func (*ReadAccountAdjustmentsRequest) GetStartTime ¶
func (x *ReadAccountAdjustmentsRequest) GetStartTime() string
func (*ReadAccountAdjustmentsRequest) GetVendor ¶
func (x *ReadAccountAdjustmentsRequest) GetVendor() string
func (*ReadAccountAdjustmentsRequest) ProtoMessage ¶
func (*ReadAccountAdjustmentsRequest) ProtoMessage()
func (*ReadAccountAdjustmentsRequest) ProtoReflect ¶
func (x *ReadAccountAdjustmentsRequest) ProtoReflect() protoreflect.Message
func (*ReadAccountAdjustmentsRequest) Reset ¶
func (x *ReadAccountAdjustmentsRequest) Reset()
func (*ReadAccountAdjustmentsRequest) String ¶
func (x *ReadAccountAdjustmentsRequest) String() string
type ReadAccountCostsRequest ¶
type ReadAccountCostsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // Required. The account 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=start_time,proto3" json:"start_time,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=end_time,proto3" json:"end_time,omitempty"` // Optional. AWS-specific request options. AwsOptions *AwsOptions `protobuf:"bytes,5,opt,name=aws_options,proto3" json:"aws_options,omitempty"` // contains filtered or unexported fields }
Request message for the Cost.ReadAccountCosts rpc.
func (*ReadAccountCostsRequest) Descriptor
deprecated
func (*ReadAccountCostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadAccountCostsRequest.ProtoReflect.Descriptor instead.
func (*ReadAccountCostsRequest) GetAwsOptions ¶ added in v0.9.1
func (x *ReadAccountCostsRequest) GetAwsOptions() *AwsOptions
func (*ReadAccountCostsRequest) GetEndTime ¶
func (x *ReadAccountCostsRequest) GetEndTime() string
func (*ReadAccountCostsRequest) GetId ¶ added in v0.10.1
func (x *ReadAccountCostsRequest) GetId() string
func (*ReadAccountCostsRequest) GetStartTime ¶
func (x *ReadAccountCostsRequest) GetStartTime() string
func (*ReadAccountCostsRequest) GetVendor ¶
func (x *ReadAccountCostsRequest) GetVendor() string
func (*ReadAccountCostsRequest) ProtoMessage ¶
func (*ReadAccountCostsRequest) ProtoMessage()
func (*ReadAccountCostsRequest) ProtoReflect ¶
func (x *ReadAccountCostsRequest) ProtoReflect() protoreflect.Message
func (*ReadAccountCostsRequest) Reset ¶
func (x *ReadAccountCostsRequest) Reset()
func (*ReadAccountCostsRequest) String ¶
func (x *ReadAccountCostsRequest) String() string
type ReadAccountTagCostsRequest ¶ added in v0.10.1
type ReadAccountTagCostsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // Required. The AWS account 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=start_time,proto3" json:"start_time,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=end_time,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
Request message for the Cost.ReadAccountTagCosts rpc.
func (*ReadAccountTagCostsRequest) Descriptor
deprecated
added in
v0.10.1
func (*ReadAccountTagCostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadAccountTagCostsRequest.ProtoReflect.Descriptor instead.
func (*ReadAccountTagCostsRequest) GetEndTime ¶ added in v0.10.1
func (x *ReadAccountTagCostsRequest) GetEndTime() string
func (*ReadAccountTagCostsRequest) GetId ¶ added in v0.10.1
func (x *ReadAccountTagCostsRequest) GetId() string
func (*ReadAccountTagCostsRequest) GetStartTime ¶ added in v0.10.1
func (x *ReadAccountTagCostsRequest) GetStartTime() string
func (*ReadAccountTagCostsRequest) GetVendor ¶ added in v0.10.1
func (x *ReadAccountTagCostsRequest) GetVendor() string
func (*ReadAccountTagCostsRequest) ProtoMessage ¶ added in v0.10.1
func (*ReadAccountTagCostsRequest) ProtoMessage()
func (*ReadAccountTagCostsRequest) ProtoReflect ¶ added in v0.10.1
func (x *ReadAccountTagCostsRequest) ProtoReflect() protoreflect.Message
func (*ReadAccountTagCostsRequest) Reset ¶ added in v0.10.1
func (x *ReadAccountTagCostsRequest) Reset()
func (*ReadAccountTagCostsRequest) String ¶ added in v0.10.1
func (x *ReadAccountTagCostsRequest) String() string
type ReadAdjustmentsRequest ¶
type ReadAdjustmentsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,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,2,opt,name=start_time,proto3" json:"start_time,omitempty"` // Optional. Timestamp to end the streaming data. If not set, current date will be used. // Format: `yyyymmdd`. EndTime string `protobuf:"bytes,3,opt,name=end_time,proto3" json:"end_time,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) 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 ReadBillingGroupAdjustmentsRequest ¶
type ReadBillingGroupAdjustmentsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // Required. The billing group id to stream. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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=start_time,proto3" json:"start_time,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=end_time,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
Request message for the Cost.ReadBillingGroupAdjustments rpc.
func (*ReadBillingGroupAdjustmentsRequest) Descriptor
deprecated
func (*ReadBillingGroupAdjustmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadBillingGroupAdjustmentsRequest.ProtoReflect.Descriptor instead.
func (*ReadBillingGroupAdjustmentsRequest) GetEndTime ¶
func (x *ReadBillingGroupAdjustmentsRequest) GetEndTime() string
func (*ReadBillingGroupAdjustmentsRequest) GetName ¶
func (x *ReadBillingGroupAdjustmentsRequest) GetName() string
func (*ReadBillingGroupAdjustmentsRequest) GetStartTime ¶
func (x *ReadBillingGroupAdjustmentsRequest) GetStartTime() string
func (*ReadBillingGroupAdjustmentsRequest) GetVendor ¶
func (x *ReadBillingGroupAdjustmentsRequest) GetVendor() string
func (*ReadBillingGroupAdjustmentsRequest) ProtoMessage ¶
func (*ReadBillingGroupAdjustmentsRequest) ProtoMessage()
func (*ReadBillingGroupAdjustmentsRequest) ProtoReflect ¶
func (x *ReadBillingGroupAdjustmentsRequest) ProtoReflect() protoreflect.Message
func (*ReadBillingGroupAdjustmentsRequest) Reset ¶
func (x *ReadBillingGroupAdjustmentsRequest) Reset()
func (*ReadBillingGroupAdjustmentsRequest) String ¶
func (x *ReadBillingGroupAdjustmentsRequest) String() string
type ReadBillingGroupCostsRequest ¶
type ReadBillingGroupCostsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // Required. The billing group id to stream. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Optional. Timestamp to start streaming data from. If not set, the first day of the // current month will be used. Format: `yyyymmd`. StartTime string `protobuf:"bytes,3,opt,name=start_time,proto3" json:"start_time,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=end_time,proto3" json:"end_time,omitempty"` // Optional. AWS-specific request options. AwsOptions *AwsOptions `protobuf:"bytes,5,opt,name=aws_options,proto3" json:"aws_options,omitempty"` // contains filtered or unexported fields }
Request message for the Cost.ReadBillingGroupCosts rpc.
func (*ReadBillingGroupCostsRequest) Descriptor
deprecated
func (*ReadBillingGroupCostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadBillingGroupCostsRequest.ProtoReflect.Descriptor instead.
func (*ReadBillingGroupCostsRequest) GetAwsOptions ¶ added in v0.9.1
func (x *ReadBillingGroupCostsRequest) GetAwsOptions() *AwsOptions
func (*ReadBillingGroupCostsRequest) GetEndTime ¶
func (x *ReadBillingGroupCostsRequest) GetEndTime() string
func (*ReadBillingGroupCostsRequest) GetName ¶
func (x *ReadBillingGroupCostsRequest) GetName() string
func (*ReadBillingGroupCostsRequest) GetStartTime ¶
func (x *ReadBillingGroupCostsRequest) GetStartTime() string
func (*ReadBillingGroupCostsRequest) GetVendor ¶
func (x *ReadBillingGroupCostsRequest) GetVendor() string
func (*ReadBillingGroupCostsRequest) ProtoMessage ¶
func (*ReadBillingGroupCostsRequest) ProtoMessage()
func (*ReadBillingGroupCostsRequest) ProtoReflect ¶
func (x *ReadBillingGroupCostsRequest) ProtoReflect() protoreflect.Message
func (*ReadBillingGroupCostsRequest) Reset ¶
func (x *ReadBillingGroupCostsRequest) Reset()
func (*ReadBillingGroupCostsRequest) String ¶
func (x *ReadBillingGroupCostsRequest) String() string
type ReadBillingGroupTagCostsRequest ¶ added in v0.10.1
type ReadBillingGroupTagCostsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // Required. The billing group id to stream. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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=start_time,proto3" json:"start_time,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=end_time,proto3" json:"end_time,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) GetName ¶ added in v0.10.1
func (x *ReadBillingGroupTagCostsRequest) GetName() string
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 (x *ReadBillingGroupTagCostsRequest) ProtoReflect() protoreflect.Message
func (*ReadBillingGroupTagCostsRequest) Reset ¶ added in v0.10.1
func (x *ReadBillingGroupTagCostsRequest) Reset()
func (*ReadBillingGroupTagCostsRequest) String ¶ added in v0.10.1
func (x *ReadBillingGroupTagCostsRequest) String() string
type ReadCostsRequest ¶
type ReadCostsRequest struct { // Required. Valid values are `aws`, `azure`, and `gcp`. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,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,2,opt,name=start_time,proto3" json:"start_time,omitempty"` // Optional. Timestamp to end the streaming data. If not set, current date will be used. // Format: `yyyymmd`. EndTime string `protobuf:"bytes,3,opt,name=end_time,proto3" json:"end_time,omitempty"` // Optional. AWS-specific request options. AwsOptions *AwsOptions `protobuf:"bytes,4,opt,name=aws_options,proto3" json:"aws_options,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) GetAwsOptions ¶ added in v0.9.1
func (x *ReadCostsRequest) GetAwsOptions() *AwsOptions
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) CalculateCosts(context.Context, *CalculateCostsRequest) (*api.Operation, error)
func (UnimplementedCostServer) CreateManagementAccount ¶ added in v0.10.0
func (UnimplementedCostServer) CreateManagementAccount(context.Context, *CreateManagementAccountRequest) (*aws.Account, error)
func (UnimplementedCostServer) DeleteManagementAccount ¶ added in v0.10.0
func (UnimplementedCostServer) DeleteManagementAccount(context.Context, *DeleteManagementAccountRequest) (*emptypb.Empty, error)
func (UnimplementedCostServer) GetManagementAccount ¶ added in v0.9.9
func (UnimplementedCostServer) GetManagementAccount(context.Context, *GetManagementAccountRequest) (*aws.Account, error)
func (UnimplementedCostServer) GetManagementAccountUpdateHistory ¶ added in v0.10.2
func (UnimplementedCostServer) GetManagementAccountUpdateHistory(context.Context, *GetManagementAccountUpdateHistoryRequest) (*GetManagementAccountUpdateHistoryResponse, error)
func (UnimplementedCostServer) ImportCurFiles ¶ added in v0.10.2
func (UnimplementedCostServer) ImportCurFiles(context.Context, *ImportCurFilesRequest) (*api.Operation, error)
func (UnimplementedCostServer) ListManagementAccounts ¶ added in v0.9.9
func (UnimplementedCostServer) ListManagementAccounts(context.Context, *ListManagementAccountsRequest) (*ListManagementAccountsResponse, error)
func (UnimplementedCostServer) ReadAccountAdjustments ¶
func (UnimplementedCostServer) ReadAccountAdjustments(*ReadAccountAdjustmentsRequest, Cost_ReadAccountAdjustmentsServer) error
func (UnimplementedCostServer) ReadAccountCosts ¶
func (UnimplementedCostServer) ReadAccountCosts(*ReadAccountCostsRequest, Cost_ReadAccountCostsServer) error
func (UnimplementedCostServer) ReadAccountTagCosts ¶ added in v0.10.1
func (UnimplementedCostServer) ReadAccountTagCosts(*ReadAccountTagCostsRequest, Cost_ReadAccountTagCostsServer) error
func (UnimplementedCostServer) ReadAdjustments ¶
func (UnimplementedCostServer) ReadAdjustments(*ReadAdjustmentsRequest, Cost_ReadAdjustmentsServer) error
func (UnimplementedCostServer) ReadBillingGroupAdjustments ¶
func (UnimplementedCostServer) ReadBillingGroupAdjustments(*ReadBillingGroupAdjustmentsRequest, Cost_ReadBillingGroupAdjustmentsServer) error
func (UnimplementedCostServer) ReadBillingGroupCosts ¶
func (UnimplementedCostServer) ReadBillingGroupCosts(*ReadBillingGroupCostsRequest, Cost_ReadBillingGroupCostsServer) error
func (UnimplementedCostServer) ReadBillingGroupTagCosts ¶ added in v0.10.1
func (UnimplementedCostServer) ReadBillingGroupTagCosts(*ReadBillingGroupTagCostsRequest, Cost_ReadBillingGroupTagCostsServer) error
func (UnimplementedCostServer) ReadCosts ¶
func (UnimplementedCostServer) ReadCosts(*ReadCostsRequest, Cost_ReadCostsServer) error
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.