awscost

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package awscost is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var AwsCost_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blueapi.awscost.v1.AwsCost",
	HandlerType: (*AwsCostServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ReadAccountCosts",
			Handler:       _AwsCost_ReadAccountCosts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadCompanyCosts",
			Handler:       _AwsCost_ReadCompanyCosts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadBillingGroupCosts",
			Handler:       _AwsCost_ReadBillingGroupCosts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadCosts",
			Handler:       _AwsCost_ReadCosts_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadAccountFees",
			Handler:       _AwsCost_ReadAccountFees_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadCompanyFees",
			Handler:       _AwsCost_ReadCompanyFees_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadBillingGroupFees",
			Handler:       _AwsCost_ReadBillingGroupFees_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadFees",
			Handler:       _AwsCost_ReadFees_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "awscost/v1/awscost.proto",
}

AwsCost_ServiceDesc is the grpc.ServiceDesc for AwsCost 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_awscost_v1_awscost_proto protoreflect.FileDescriptor

Functions

func RegisterAwsCostHandler

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

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

func RegisterAwsCostHandlerClient

func RegisterAwsCostHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AwsCostClient) error

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

func RegisterAwsCostHandlerFromEndpoint

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

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

func RegisterAwsCostHandlerServer

func RegisterAwsCostHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AwsCostServer) error

RegisterAwsCostHandlerServer registers the http handlers for service AwsCost to "mux". UnaryRPC :call AwsCostServer 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 RegisterAwsCostHandlerFromEndpoint instead.

func RegisterAwsCostServer

func RegisterAwsCostServer(s grpc.ServiceRegistrar, srv AwsCostServer)

Types

type AwsCostClient

type AwsCostClient interface {
	// Reads the usage-based cost details of an AWS account. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadAccountCosts(ctx context.Context, in *ReadAccountCostsRequest, opts ...grpc.CallOption) (AwsCost_ReadAccountCostsClient, error)
	// Reads the usage-based cost details of a company. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadCompanyCosts(ctx context.Context, in *ReadCompanyCostsRequest, opts ...grpc.CallOption) (AwsCost_ReadCompanyCostsClient, error)
	// Reads the usage-based cost details of a billing group. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupCosts(ctx context.Context, in *ReadBillingGroupCostsRequest, opts ...grpc.CallOption) (AwsCost_ReadBillingGroupCostsClient, error)
	// Reads the usage-based cost details of an organization (Ripple) or company (Wave).
	// If datetime range parameters are not set, month-to-date (current month) will be returned.
	ReadCosts(ctx context.Context, in *ReadCostsRequest, opts ...grpc.CallOption) (AwsCost_ReadCostsClient, error)
	// Reads the non-usaged-based details of an AWS account. This API covers non-usage-based
	// fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadAccountFees(ctx context.Context, in *ReadAccountFeesRequest, opts ...grpc.CallOption) (AwsCost_ReadAccountFeesClient, error)
	// Reads the non-usage-based details of a company. This API covers non-usage-based
	// fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadCompanyFees(ctx context.Context, in *ReadCompanyFeesRequest, opts ...grpc.CallOption) (AwsCost_ReadCompanyFeesClient, error)
	// Reads the non-usage-based details of a billing group. This API covers non-usage-based
	// fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupFees(ctx context.Context, in *ReadBillingGroupFeesRequest, opts ...grpc.CallOption) (AwsCost_ReadBillingGroupFeesClient, error)
	// Reads the non-usage-based details of an organization (Ripple) or company (Wave). This API covers
	// non-usage-based fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime
	// range parameters are not set, month-to-date (current month) will be returned.
	ReadFees(ctx context.Context, in *ReadFeesRequest, opts ...grpc.CallOption) (AwsCost_ReadFeesClient, error)
}

AwsCostClient is the client API for AwsCost 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 NewAwsCostClient

func NewAwsCostClient(cc grpc.ClientConnInterface) AwsCostClient

type AwsCostServer

type AwsCostServer interface {
	// Reads the usage-based cost details of an AWS account. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadAccountCosts(*ReadAccountCostsRequest, AwsCost_ReadAccountCostsServer) error
	// Reads the usage-based cost details of a company. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadCompanyCosts(*ReadCompanyCostsRequest, AwsCost_ReadCompanyCostsServer) error
	// Reads the usage-based cost details of a billing group. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupCosts(*ReadBillingGroupCostsRequest, AwsCost_ReadBillingGroupCostsServer) error
	// Reads the usage-based cost details of an organization (Ripple) or company (Wave).
	// If datetime range parameters are not set, month-to-date (current month) will be returned.
	ReadCosts(*ReadCostsRequest, AwsCost_ReadCostsServer) error
	// Reads the non-usaged-based details of an AWS account. This API covers non-usage-based
	// fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadAccountFees(*ReadAccountFeesRequest, AwsCost_ReadAccountFeesServer) error
	// Reads the non-usage-based details of a company. This API covers non-usage-based
	// fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadCompanyFees(*ReadCompanyFeesRequest, AwsCost_ReadCompanyFeesServer) error
	// Reads the non-usage-based details of a billing group. This API covers non-usage-based
	// fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime range
	// parameters are not set, month-to-date (current month) will be returned.
	ReadBillingGroupFees(*ReadBillingGroupFeesRequest, AwsCost_ReadBillingGroupFeesServer) error
	// Reads the non-usage-based details of an organization (Ripple) or company (Wave). This API covers
	// non-usage-based fees, such as Fees, Credits, Discounts, Tax, Upfront Fees, etc. If datetime
	// range parameters are not set, month-to-date (current month) will be returned.
	ReadFees(*ReadFeesRequest, AwsCost_ReadFeesServer) error
	// contains filtered or unexported methods
}

AwsCostServer is the server API for AwsCost service. All implementations must embed UnimplementedAwsCostServer for forward compatibility

type AwsCost_ReadAccountCostsClient added in v0.6.13

type AwsCost_ReadAccountCostsClient interface {
	Recv() (*Cost, error)
	grpc.ClientStream
}

type AwsCost_ReadAccountCostsServer added in v0.6.13

type AwsCost_ReadAccountCostsServer interface {
	Send(*Cost) error
	grpc.ServerStream
}

type AwsCost_ReadAccountFeesClient added in v0.6.13

type AwsCost_ReadAccountFeesClient interface {
	Recv() (*Fee, error)
	grpc.ClientStream
}

type AwsCost_ReadAccountFeesServer added in v0.6.13

type AwsCost_ReadAccountFeesServer interface {
	Send(*Fee) error
	grpc.ServerStream
}

type AwsCost_ReadBillingGroupCostsClient added in v0.6.13

type AwsCost_ReadBillingGroupCostsClient interface {
	Recv() (*Cost, error)
	grpc.ClientStream
}

type AwsCost_ReadBillingGroupCostsServer added in v0.6.13

type AwsCost_ReadBillingGroupCostsServer interface {
	Send(*Cost) error
	grpc.ServerStream
}

type AwsCost_ReadBillingGroupFeesClient added in v0.6.13

type AwsCost_ReadBillingGroupFeesClient interface {
	Recv() (*Fee, error)
	grpc.ClientStream
}

type AwsCost_ReadBillingGroupFeesServer added in v0.6.13

type AwsCost_ReadBillingGroupFeesServer interface {
	Send(*Fee) error
	grpc.ServerStream
}

type AwsCost_ReadCompanyCostsClient added in v0.6.13

type AwsCost_ReadCompanyCostsClient interface {
	Recv() (*Cost, error)
	grpc.ClientStream
}

type AwsCost_ReadCompanyCostsServer added in v0.6.13

type AwsCost_ReadCompanyCostsServer interface {
	Send(*Cost) error
	grpc.ServerStream
}

type AwsCost_ReadCompanyFeesClient added in v0.6.13

type AwsCost_ReadCompanyFeesClient interface {
	Recv() (*Fee, error)
	grpc.ClientStream
}

type AwsCost_ReadCompanyFeesServer added in v0.6.13

type AwsCost_ReadCompanyFeesServer interface {
	Send(*Fee) error
	grpc.ServerStream
}

type AwsCost_ReadCostsClient added in v0.6.13

type AwsCost_ReadCostsClient interface {
	Recv() (*Cost, error)
	grpc.ClientStream
}

type AwsCost_ReadCostsServer added in v0.6.13

type AwsCost_ReadCostsServer interface {
	Send(*Cost) error
	grpc.ServerStream
}

type AwsCost_ReadFeesClient added in v0.6.13

type AwsCost_ReadFeesClient interface {
	Recv() (*Fee, error)
	grpc.ClientStream
}

type AwsCost_ReadFeesServer added in v0.6.13

type AwsCost_ReadFeesServer interface {
	Send(*Fee) error
	grpc.ServerStream
}

type ClientOptions added in v0.6.10

type ClientOptions struct {
	Conn *conn.GrpcClientConn
}

ClientOptions represents the optional options to NewClient.

type Cost added in v0.3.1

type Cost struct {
	Account        string                 `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	CompanyId      string                 `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"`
	BillingGroupId string                 `protobuf:"bytes,3,opt,name=billing_group_id,json=billingGroupId,proto3" json:"billing_group_id,omitempty"`
	Date           *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
	ProductCode    string                 `protobuf:"bytes,5,opt,name=product_code,json=productCode,proto3" json:"product_code,omitempty"`
	ServiceCode    string                 `protobuf:"bytes,6,opt,name=service_code,json=serviceCode,proto3" json:"service_code,omitempty"`
	Region         string                 `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"`
	Zone           string                 `protobuf:"bytes,8,opt,name=zone,proto3" json:"zone,omitempty"`
	UsageType      string                 `protobuf:"bytes,9,opt,name=usage_type,json=usageType,proto3" json:"usage_type,omitempty"`
	InstanceType   string                 `protobuf:"bytes,10,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"`
	Operation      string                 `protobuf:"bytes,11,opt,name=operation,proto3" json:"operation,omitempty"`
	InvoiceId      string                 `protobuf:"bytes,12,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
	Description    string                 `protobuf:"bytes,13,opt,name=description,proto3" json:"description,omitempty"`
	Tags           map[string]string      `` /* 150-byte string literal not displayed */
	CostCategories map[string]string      `` /* 192-byte string literal not displayed */
	UsageAmount    float64                `protobuf:"fixed64,16,opt,name=usage_amount,json=usageAmount,proto3" json:"usage_amount,omitempty"`
	Cost           float64                `protobuf:"fixed64,17,opt,name=cost,proto3" json:"cost,omitempty"`
	// contains filtered or unexported fields
}

Response message for AwsCost.StreamReadAccountCosts.

func (*Cost) Descriptor deprecated added in v0.3.1

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

Deprecated: Use Cost.ProtoReflect.Descriptor instead.

func (*Cost) GetAccount added in v0.3.1

func (x *Cost) GetAccount() string

func (*Cost) GetBillingGroupId added in v0.4.14

func (x *Cost) GetBillingGroupId() string

func (*Cost) GetCompanyId added in v0.4.14

func (x *Cost) GetCompanyId() string

func (*Cost) GetCost added in v0.3.1

func (x *Cost) GetCost() float64

func (*Cost) GetCostCategories added in v0.5.5

func (x *Cost) GetCostCategories() map[string]string

func (*Cost) GetDate added in v0.3.1

func (x *Cost) GetDate() *timestamppb.Timestamp

func (*Cost) GetDescription added in v0.3.1

func (x *Cost) GetDescription() string

func (*Cost) GetInstanceType added in v0.3.1

func (x *Cost) GetInstanceType() string

func (*Cost) GetInvoiceId added in v0.3.1

func (x *Cost) GetInvoiceId() string

func (*Cost) GetOperation added in v0.3.1

func (x *Cost) GetOperation() string

func (*Cost) GetProductCode added in v0.3.1

func (x *Cost) GetProductCode() string

func (*Cost) GetRegion added in v0.3.1

func (x *Cost) GetRegion() string

func (*Cost) GetServiceCode added in v0.3.1

func (x *Cost) GetServiceCode() string

func (*Cost) GetTags added in v0.5.5

func (x *Cost) GetTags() map[string]string

func (*Cost) GetUsageAmount added in v0.3.1

func (x *Cost) GetUsageAmount() float64

func (*Cost) GetUsageType added in v0.3.1

func (x *Cost) GetUsageType() string

func (*Cost) GetZone added in v0.3.1

func (x *Cost) GetZone() string

func (*Cost) ProtoMessage added in v0.3.1

func (*Cost) ProtoMessage()

func (*Cost) ProtoReflect added in v0.3.1

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

func (*Cost) Reset added in v0.3.1

func (x *Cost) Reset()

func (*Cost) String added in v0.3.1

func (x *Cost) String() string

type Fee added in v0.4.0

type Fee struct {
	Account        string                 `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	CompanyId      string                 `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"`
	BillingGroupId string                 `protobuf:"bytes,3,opt,name=billing_group_id,json=billingGroupId,proto3" json:"billing_group_id,omitempty"`
	Date           *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
	Type           string                 `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	ProductCode    string                 `protobuf:"bytes,6,opt,name=product_code,json=productCode,proto3" json:"product_code,omitempty"`
	Description    string                 `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	Cost           float64                `protobuf:"fixed64,8,opt,name=cost,proto3" json:"cost,omitempty"`
	// contains filtered or unexported fields
}

Response message for AwsCost.ReadAccountFees.

func (*Fee) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Fee.ProtoReflect.Descriptor instead.

func (*Fee) GetAccount added in v0.4.0

func (x *Fee) GetAccount() string

func (*Fee) GetBillingGroupId added in v0.4.14

func (x *Fee) GetBillingGroupId() string

func (*Fee) GetCompanyId added in v0.4.14

func (x *Fee) GetCompanyId() string

func (*Fee) GetCost added in v0.4.0

func (x *Fee) GetCost() float64

func (*Fee) GetDate added in v0.4.0

func (x *Fee) GetDate() *timestamppb.Timestamp

func (*Fee) GetDescription added in v0.4.0

func (x *Fee) GetDescription() string

func (*Fee) GetProductCode added in v0.4.0

func (x *Fee) GetProductCode() string

func (*Fee) GetType added in v0.4.0

func (x *Fee) GetType() string

func (*Fee) ProtoMessage added in v0.4.0

func (*Fee) ProtoMessage()

func (*Fee) ProtoReflect added in v0.4.0

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

func (*Fee) Reset added in v0.4.0

func (x *Fee) Reset()

func (*Fee) String added in v0.4.0

func (x *Fee) String() string

type GrpcClient added in v0.6.6

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

func NewClient added in v0.4.4

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

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

func (*GrpcClient) Close added in v0.6.6

func (c *GrpcClient) Close()

type ReadAccountCostsRequest added in v0.6.13

type ReadAccountCostsRequest struct {

	// Required. The AWS account to stream.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// 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,4,opt,name=include_tags,json=includeTags,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 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadAccountCosts.

func (*ReadAccountCostsRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadAccountCostsRequest.ProtoReflect.Descriptor instead.

func (*ReadAccountCostsRequest) GetEndTime added in v0.6.13

func (*ReadAccountCostsRequest) GetIncludeCostCategories added in v0.6.13

func (x *ReadAccountCostsRequest) GetIncludeCostCategories() bool

func (*ReadAccountCostsRequest) GetIncludeTags added in v0.6.13

func (x *ReadAccountCostsRequest) GetIncludeTags() bool

func (*ReadAccountCostsRequest) GetName added in v0.6.13

func (x *ReadAccountCostsRequest) GetName() string

func (*ReadAccountCostsRequest) GetStartTime added in v0.6.13

func (x *ReadAccountCostsRequest) GetStartTime() *timestamppb.Timestamp

func (*ReadAccountCostsRequest) ProtoMessage added in v0.6.13

func (*ReadAccountCostsRequest) ProtoMessage()

func (*ReadAccountCostsRequest) ProtoReflect added in v0.6.13

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

func (*ReadAccountCostsRequest) Reset added in v0.6.13

func (x *ReadAccountCostsRequest) Reset()

func (*ReadAccountCostsRequest) String added in v0.6.13

func (x *ReadAccountCostsRequest) String() string

type ReadAccountFeesRequest added in v0.6.13

type ReadAccountFeesRequest struct {

	// Required. The AWS account id to stream.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadAccountFees.

func (*ReadAccountFeesRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadAccountFeesRequest.ProtoReflect.Descriptor instead.

func (*ReadAccountFeesRequest) GetEndTime added in v0.6.13

func (x *ReadAccountFeesRequest) GetEndTime() *timestamppb.Timestamp

func (*ReadAccountFeesRequest) GetName added in v0.6.13

func (x *ReadAccountFeesRequest) GetName() string

func (*ReadAccountFeesRequest) GetStartTime added in v0.6.13

func (x *ReadAccountFeesRequest) GetStartTime() *timestamppb.Timestamp

func (*ReadAccountFeesRequest) ProtoMessage added in v0.6.13

func (*ReadAccountFeesRequest) ProtoMessage()

func (*ReadAccountFeesRequest) ProtoReflect added in v0.6.13

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

func (*ReadAccountFeesRequest) Reset added in v0.6.13

func (x *ReadAccountFeesRequest) Reset()

func (*ReadAccountFeesRequest) String added in v0.6.13

func (x *ReadAccountFeesRequest) String() string

type ReadBillingGroupCostsRequest added in v0.6.13

type ReadBillingGroupCostsRequest struct {

	// Required. The billing group id to stream.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// 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,4,opt,name=include_tags,json=includeTags,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 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadBillingGroupCosts.

func (*ReadBillingGroupCostsRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadBillingGroupCostsRequest.ProtoReflect.Descriptor instead.

func (*ReadBillingGroupCostsRequest) GetEndTime added in v0.6.13

func (*ReadBillingGroupCostsRequest) GetIncludeCostCategories added in v0.6.13

func (x *ReadBillingGroupCostsRequest) GetIncludeCostCategories() bool

func (*ReadBillingGroupCostsRequest) GetIncludeTags added in v0.6.13

func (x *ReadBillingGroupCostsRequest) GetIncludeTags() bool

func (*ReadBillingGroupCostsRequest) GetName added in v0.6.13

func (x *ReadBillingGroupCostsRequest) GetName() string

func (*ReadBillingGroupCostsRequest) GetStartTime added in v0.6.13

func (*ReadBillingGroupCostsRequest) ProtoMessage added in v0.6.13

func (*ReadBillingGroupCostsRequest) ProtoMessage()

func (*ReadBillingGroupCostsRequest) ProtoReflect added in v0.6.13

func (*ReadBillingGroupCostsRequest) Reset added in v0.6.13

func (x *ReadBillingGroupCostsRequest) Reset()

func (*ReadBillingGroupCostsRequest) String added in v0.6.13

type ReadBillingGroupFeesRequest added in v0.6.13

type ReadBillingGroupFeesRequest struct {

	// Required. The billing group id to stream.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadBillingGroupFees.

func (*ReadBillingGroupFeesRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadBillingGroupFeesRequest.ProtoReflect.Descriptor instead.

func (*ReadBillingGroupFeesRequest) GetEndTime added in v0.6.13

func (*ReadBillingGroupFeesRequest) GetName added in v0.6.13

func (x *ReadBillingGroupFeesRequest) GetName() string

func (*ReadBillingGroupFeesRequest) GetStartTime added in v0.6.13

func (*ReadBillingGroupFeesRequest) ProtoMessage added in v0.6.13

func (*ReadBillingGroupFeesRequest) ProtoMessage()

func (*ReadBillingGroupFeesRequest) ProtoReflect added in v0.6.13

func (*ReadBillingGroupFeesRequest) Reset added in v0.6.13

func (x *ReadBillingGroupFeesRequest) Reset()

func (*ReadBillingGroupFeesRequest) String added in v0.6.13

func (x *ReadBillingGroupFeesRequest) String() string

type ReadCompanyCostsRequest added in v0.6.13

type ReadCompanyCostsRequest struct {

	// Required. The company id to stream.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// 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,4,opt,name=include_tags,json=includeTags,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 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadCompanyCosts.

func (*ReadCompanyCostsRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadCompanyCostsRequest.ProtoReflect.Descriptor instead.

func (*ReadCompanyCostsRequest) GetEndTime added in v0.6.13

func (*ReadCompanyCostsRequest) GetIncludeCostCategories added in v0.6.13

func (x *ReadCompanyCostsRequest) GetIncludeCostCategories() bool

func (*ReadCompanyCostsRequest) GetIncludeTags added in v0.6.13

func (x *ReadCompanyCostsRequest) GetIncludeTags() bool

func (*ReadCompanyCostsRequest) GetName added in v0.6.13

func (x *ReadCompanyCostsRequest) GetName() string

func (*ReadCompanyCostsRequest) GetStartTime added in v0.6.13

func (x *ReadCompanyCostsRequest) GetStartTime() *timestamppb.Timestamp

func (*ReadCompanyCostsRequest) ProtoMessage added in v0.6.13

func (*ReadCompanyCostsRequest) ProtoMessage()

func (*ReadCompanyCostsRequest) ProtoReflect added in v0.6.13

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

func (*ReadCompanyCostsRequest) Reset added in v0.6.13

func (x *ReadCompanyCostsRequest) Reset()

func (*ReadCompanyCostsRequest) String added in v0.6.13

func (x *ReadCompanyCostsRequest) String() string

type ReadCompanyFeesRequest added in v0.6.13

type ReadCompanyFeesRequest struct {

	// Required. The company id to stream.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadCompanyFees.

func (*ReadCompanyFeesRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadCompanyFeesRequest.ProtoReflect.Descriptor instead.

func (*ReadCompanyFeesRequest) GetEndTime added in v0.6.13

func (x *ReadCompanyFeesRequest) GetEndTime() *timestamppb.Timestamp

func (*ReadCompanyFeesRequest) GetName added in v0.6.13

func (x *ReadCompanyFeesRequest) GetName() string

func (*ReadCompanyFeesRequest) GetStartTime added in v0.6.13

func (x *ReadCompanyFeesRequest) GetStartTime() *timestamppb.Timestamp

func (*ReadCompanyFeesRequest) ProtoMessage added in v0.6.13

func (*ReadCompanyFeesRequest) ProtoMessage()

func (*ReadCompanyFeesRequest) ProtoReflect added in v0.6.13

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

func (*ReadCompanyFeesRequest) Reset added in v0.6.13

func (x *ReadCompanyFeesRequest) Reset()

func (*ReadCompanyFeesRequest) String added in v0.6.13

func (x *ReadCompanyFeesRequest) String() string

type ReadCostsRequest added in v0.6.13

type ReadCostsRequest struct {

	// Optional. The MSP id or company id to stream. If not provided, the parent MSP or
	// company will be used.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// 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,4,opt,name=include_tags,json=includeTags,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 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadCosts.

func (*ReadCostsRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadCostsRequest.ProtoReflect.Descriptor instead.

func (*ReadCostsRequest) GetEndTime added in v0.6.13

func (x *ReadCostsRequest) GetEndTime() *timestamppb.Timestamp

func (*ReadCostsRequest) GetIncludeCostCategories added in v0.6.13

func (x *ReadCostsRequest) GetIncludeCostCategories() bool

func (*ReadCostsRequest) GetIncludeTags added in v0.6.13

func (x *ReadCostsRequest) GetIncludeTags() bool

func (*ReadCostsRequest) GetName added in v0.6.13

func (x *ReadCostsRequest) GetName() string

func (*ReadCostsRequest) GetStartTime added in v0.6.13

func (x *ReadCostsRequest) GetStartTime() *timestamppb.Timestamp

func (*ReadCostsRequest) ProtoMessage added in v0.6.13

func (*ReadCostsRequest) ProtoMessage()

func (*ReadCostsRequest) ProtoReflect added in v0.6.13

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

func (*ReadCostsRequest) Reset added in v0.6.13

func (x *ReadCostsRequest) Reset()

func (*ReadCostsRequest) String added in v0.6.13

func (x *ReadCostsRequest) String() string

type ReadFeesRequest added in v0.6.13

type ReadFeesRequest struct {

	// Optional. The MSP id or company id to stream. If not provided, the parent MSP or
	// company will be used.
	Name string `protobuf:"bytes,1,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.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Optional. Timestamp to end the streaming data. If not set, current date will be used.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Request message for AwsCost.ReadFees.

func (*ReadFeesRequest) Descriptor deprecated added in v0.6.13

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

Deprecated: Use ReadFeesRequest.ProtoReflect.Descriptor instead.

func (*ReadFeesRequest) GetEndTime added in v0.6.13

func (x *ReadFeesRequest) GetEndTime() *timestamppb.Timestamp

func (*ReadFeesRequest) GetName added in v0.6.13

func (x *ReadFeesRequest) GetName() string

func (*ReadFeesRequest) GetStartTime added in v0.6.13

func (x *ReadFeesRequest) GetStartTime() *timestamppb.Timestamp

func (*ReadFeesRequest) ProtoMessage added in v0.6.13

func (*ReadFeesRequest) ProtoMessage()

func (*ReadFeesRequest) ProtoReflect added in v0.6.13

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

func (*ReadFeesRequest) Reset added in v0.6.13

func (x *ReadFeesRequest) Reset()

func (*ReadFeesRequest) String added in v0.6.13

func (x *ReadFeesRequest) String() string

type UnimplementedAwsCostServer

type UnimplementedAwsCostServer struct {
}

UnimplementedAwsCostServer must be embedded to have forward compatible implementations.

func (UnimplementedAwsCostServer) ReadAccountCosts added in v0.6.13

func (UnimplementedAwsCostServer) ReadAccountFees added in v0.6.13

func (UnimplementedAwsCostServer) ReadBillingGroupCosts added in v0.6.13

func (UnimplementedAwsCostServer) ReadBillingGroupFees added in v0.6.13

func (UnimplementedAwsCostServer) ReadCompanyCosts added in v0.6.13

func (UnimplementedAwsCostServer) ReadCompanyFees added in v0.6.13

func (UnimplementedAwsCostServer) ReadCosts added in v0.6.13

func (UnimplementedAwsCostServer) ReadFees added in v0.6.13

type UnsafeAwsCostServer

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

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

Jump to

Keyboard shortcuts

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