cost

package
v0.0.0-...-e47837b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_INCOMPLETE",
		2: "STATUS_COMPLETE",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_INCOMPLETE":  1,
		"STATUS_COMPLETE":    2,
	}
)

Enum value maps for Status.

View Source
var CostService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kentik.cost.v202308.CostService",
	HandlerType: (*CostServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCostProviders",
			Handler:    _CostService_ListCostProviders_Handler,
		},
		{
			MethodName: "ListCostProviderSummaries",
			Handler:    _CostService_ListCostProviderSummaries_Handler,
		},
		{
			MethodName: "GetCostProviderSummary",
			Handler:    _CostService_GetCostProviderSummary_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kentik/cost/v202308/cost.proto",
}

CostService_ServiceDesc is the grpc.ServiceDesc for CostService 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_kentik_cost_v202308_cost_proto protoreflect.FileDescriptor

Functions

func RegisterCostServiceServer

func RegisterCostServiceServer(s grpc.ServiceRegistrar, srv CostServiceServer)

Types

type CostProviderConcise

type CostProviderConcise struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*CostProviderConcise) Descriptor deprecated

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

Deprecated: Use CostProviderConcise.ProtoReflect.Descriptor instead.

func (*CostProviderConcise) GetId

func (x *CostProviderConcise) GetId() string

func (*CostProviderConcise) GetName

func (x *CostProviderConcise) GetName() string

func (*CostProviderConcise) ProtoMessage

func (*CostProviderConcise) ProtoMessage()

func (*CostProviderConcise) ProtoReflect

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

func (*CostProviderConcise) Reset

func (x *CostProviderConcise) Reset()

func (*CostProviderConcise) String

func (x *CostProviderConcise) String() string

type CostProviderSummary

type CostProviderSummary struct {
	Date                                  string  `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	Status                                Status  `protobuf:"varint,2,opt,name=status,proto3,enum=kentik.cost.v202308.Status" json:"status,omitempty"`
	TotalCost                             float32 `protobuf:"fixed32,3,opt,name=total_cost,json=totalCost,proto3" json:"total_cost,omitempty"`
	TotalCostVariation                    string  `protobuf:"bytes,4,opt,name=total_cost_variation,json=totalCostVariation,proto3" json:"total_cost_variation,omitempty"`
	TotalCostGroupAdditionalCost          float32 `` /* 153-byte string literal not displayed */
	TotalCostGroupAdditionalInterfaceCost float32 `` /* 182-byte string literal not displayed */
	Currency                              string  `protobuf:"bytes,7,opt,name=currency,proto3" json:"currency,omitempty"`
	CostPerMbps                           float32 `protobuf:"fixed32,8,opt,name=cost_per_mbps,json=costPerMbps,proto3" json:"cost_per_mbps,omitempty"`
	CostPerMbpsVariation                  string  `protobuf:"bytes,9,opt,name=cost_per_mbps_variation,json=costPerMbpsVariation,proto3" json:"cost_per_mbps_variation,omitempty"`
	ProviderName                          string  `protobuf:"bytes,10,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"`
	CostGroupName                         string  `protobuf:"bytes,11,opt,name=cost_group_name,json=costGroupName,proto3" json:"cost_group_name,omitempty"`
	CostGroupConnType                     string  `protobuf:"bytes,12,opt,name=cost_group_conn_type,json=costGroupConnType,proto3" json:"cost_group_conn_type,omitempty"`
	SiteName                              string  `protobuf:"bytes,13,opt,name=site_name,json=siteName,proto3" json:"site_name,omitempty"`
	SiteMarket                            string  `protobuf:"bytes,14,opt,name=site_market,json=siteMarket,proto3" json:"site_market,omitempty"`
	IngressTrafficMbps                    float32 `protobuf:"fixed32,15,opt,name=ingress_traffic_mbps,json=ingressTrafficMbps,proto3" json:"ingress_traffic_mbps,omitempty"`
	IngressTrafficVariation               string  `` /* 133-byte string literal not displayed */
	EgressTrafficMbps                     float32 `protobuf:"fixed32,17,opt,name=egress_traffic_mbps,json=egressTrafficMbps,proto3" json:"egress_traffic_mbps,omitempty"`
	EgressTrafficVariation                string  `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

{{.Name}}

func (*CostProviderSummary) Descriptor deprecated

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

Deprecated: Use CostProviderSummary.ProtoReflect.Descriptor instead.

func (*CostProviderSummary) GetCostGroupConnType

func (x *CostProviderSummary) GetCostGroupConnType() string

func (*CostProviderSummary) GetCostGroupName

func (x *CostProviderSummary) GetCostGroupName() string

func (*CostProviderSummary) GetCostPerMbps

func (x *CostProviderSummary) GetCostPerMbps() float32

func (*CostProviderSummary) GetCostPerMbpsVariation

func (x *CostProviderSummary) GetCostPerMbpsVariation() string

func (*CostProviderSummary) GetCurrency

func (x *CostProviderSummary) GetCurrency() string

func (*CostProviderSummary) GetDate

func (x *CostProviderSummary) GetDate() string

func (*CostProviderSummary) GetEgressTrafficMbps

func (x *CostProviderSummary) GetEgressTrafficMbps() float32

func (*CostProviderSummary) GetEgressTrafficVariation

func (x *CostProviderSummary) GetEgressTrafficVariation() string

func (*CostProviderSummary) GetIngressTrafficMbps

func (x *CostProviderSummary) GetIngressTrafficMbps() float32

func (*CostProviderSummary) GetIngressTrafficVariation

func (x *CostProviderSummary) GetIngressTrafficVariation() string

func (*CostProviderSummary) GetProviderName

func (x *CostProviderSummary) GetProviderName() string

func (*CostProviderSummary) GetSiteMarket

func (x *CostProviderSummary) GetSiteMarket() string

func (*CostProviderSummary) GetSiteName

func (x *CostProviderSummary) GetSiteName() string

func (*CostProviderSummary) GetStatus

func (x *CostProviderSummary) GetStatus() Status

func (*CostProviderSummary) GetTotalCost

func (x *CostProviderSummary) GetTotalCost() float32

func (*CostProviderSummary) GetTotalCostGroupAdditionalCost

func (x *CostProviderSummary) GetTotalCostGroupAdditionalCost() float32

func (*CostProviderSummary) GetTotalCostGroupAdditionalInterfaceCost

func (x *CostProviderSummary) GetTotalCostGroupAdditionalInterfaceCost() float32

func (*CostProviderSummary) GetTotalCostVariation

func (x *CostProviderSummary) GetTotalCostVariation() string

func (*CostProviderSummary) ProtoMessage

func (*CostProviderSummary) ProtoMessage()

func (*CostProviderSummary) ProtoReflect

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

func (*CostProviderSummary) Reset

func (x *CostProviderSummary) Reset()

func (*CostProviderSummary) String

func (x *CostProviderSummary) String() string

type CostServiceClient

type CostServiceClient interface {
	ListCostProviders(ctx context.Context, in *ListCostProvidersRequest, opts ...grpc.CallOption) (*ListCostProvidersResponse, error)
	ListCostProviderSummaries(ctx context.Context, in *ListCostProviderSummariesRequest, opts ...grpc.CallOption) (*ListCostProviderSummariesResponse, error)
	GetCostProviderSummary(ctx context.Context, in *GetCostProviderSummaryRequest, opts ...grpc.CallOption) (*GetCostProviderSummaryResponse, error)
}

CostServiceClient is the client API for CostService service.

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

type CostServiceServer

CostServiceServer is the server API for CostService service. All implementations should embed UnimplementedCostServiceServer for forward compatibility

type GetCostProviderSummaryRequest

type GetCostProviderSummaryRequest struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Date string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetCostProviderSummaryRequest) Descriptor deprecated

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

Deprecated: Use GetCostProviderSummaryRequest.ProtoReflect.Descriptor instead.

func (*GetCostProviderSummaryRequest) GetDate

func (*GetCostProviderSummaryRequest) GetId

func (*GetCostProviderSummaryRequest) ProtoMessage

func (*GetCostProviderSummaryRequest) ProtoMessage()

func (*GetCostProviderSummaryRequest) ProtoReflect

func (*GetCostProviderSummaryRequest) Reset

func (x *GetCostProviderSummaryRequest) Reset()

func (*GetCostProviderSummaryRequest) String

type GetCostProviderSummaryResponse

type GetCostProviderSummaryResponse struct {
	Providers    []*CostProviderSummary `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	InvalidCount uint32                 `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetCostProviderSummaryResponse) Descriptor deprecated

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

Deprecated: Use GetCostProviderSummaryResponse.ProtoReflect.Descriptor instead.

func (*GetCostProviderSummaryResponse) GetInvalidCount

func (x *GetCostProviderSummaryResponse) GetInvalidCount() uint32

func (*GetCostProviderSummaryResponse) GetProviders

func (*GetCostProviderSummaryResponse) ProtoMessage

func (*GetCostProviderSummaryResponse) ProtoMessage()

func (*GetCostProviderSummaryResponse) ProtoReflect

func (*GetCostProviderSummaryResponse) Reset

func (x *GetCostProviderSummaryResponse) Reset()

func (*GetCostProviderSummaryResponse) String

type ListCostProviderSummariesRequest

type ListCostProviderSummariesRequest struct {
	Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ListCostProviderSummariesRequest) Descriptor deprecated

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

Deprecated: Use ListCostProviderSummariesRequest.ProtoReflect.Descriptor instead.

func (*ListCostProviderSummariesRequest) GetDate

func (*ListCostProviderSummariesRequest) ProtoMessage

func (*ListCostProviderSummariesRequest) ProtoMessage()

func (*ListCostProviderSummariesRequest) ProtoReflect

func (*ListCostProviderSummariesRequest) Reset

func (*ListCostProviderSummariesRequest) String

type ListCostProviderSummariesResponse

type ListCostProviderSummariesResponse struct {
	Providers    []*CostProviderSummary `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	InvalidCount uint32                 `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ListCostProviderSummariesResponse) Descriptor deprecated

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

Deprecated: Use ListCostProviderSummariesResponse.ProtoReflect.Descriptor instead.

func (*ListCostProviderSummariesResponse) GetInvalidCount

func (x *ListCostProviderSummariesResponse) GetInvalidCount() uint32

func (*ListCostProviderSummariesResponse) GetProviders

func (*ListCostProviderSummariesResponse) ProtoMessage

func (*ListCostProviderSummariesResponse) ProtoMessage()

func (*ListCostProviderSummariesResponse) ProtoReflect

func (*ListCostProviderSummariesResponse) Reset

func (*ListCostProviderSummariesResponse) String

type ListCostProvidersRequest

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

{{.Name}}

func (*ListCostProvidersRequest) Descriptor deprecated

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

Deprecated: Use ListCostProvidersRequest.ProtoReflect.Descriptor instead.

func (*ListCostProvidersRequest) ProtoMessage

func (*ListCostProvidersRequest) ProtoMessage()

func (*ListCostProvidersRequest) ProtoReflect

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

func (*ListCostProvidersRequest) Reset

func (x *ListCostProvidersRequest) Reset()

func (*ListCostProvidersRequest) String

func (x *ListCostProvidersRequest) String() string

type ListCostProvidersResponse

type ListCostProvidersResponse struct {
	Providers    []*CostProviderConcise `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	InvalidCount uint32                 `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ListCostProvidersResponse) Descriptor deprecated

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

Deprecated: Use ListCostProvidersResponse.ProtoReflect.Descriptor instead.

func (*ListCostProvidersResponse) GetInvalidCount

func (x *ListCostProvidersResponse) GetInvalidCount() uint32

func (*ListCostProvidersResponse) GetProviders

func (x *ListCostProvidersResponse) GetProviders() []*CostProviderConcise

func (*ListCostProvidersResponse) ProtoMessage

func (*ListCostProvidersResponse) ProtoMessage()

func (*ListCostProvidersResponse) ProtoReflect

func (*ListCostProvidersResponse) Reset

func (x *ListCostProvidersResponse) Reset()

func (*ListCostProvidersResponse) String

func (x *ListCostProvidersResponse) String() string

type Status

type Status int32

{{.Name}}

const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_STATUS_INCOMPLETE  Status = 1
	Status_STATUS_COMPLETE    Status = 2
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type UnimplementedCostServiceServer

type UnimplementedCostServiceServer struct {
}

UnimplementedCostServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCostServiceServer) ListCostProviders

type UnsafeCostServiceServer

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

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

Jump to

Keyboard shortcuts

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