cost

package
v0.5.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectedTimeRange

type CollectedTimeRange struct {
	FirstTime time.Time `json:"firstTime,omitempty"`
	LastTime  time.Time `json:"lastTime,omitempty"`
}

type CollectionRouteGetCostReportsRequest

type CollectionRouteGetCostReportsRequest struct {
	types.QueryCondition `json:",inline"`

	StartTime time.Time `json:"startTime,omitempty"`
	EndTime   time.Time `json:"endTime,omitempty"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetCostReportsRequest) SetGinContext

func (r *CollectionRouteGetCostReportsRequest) SetGinContext(ctx *gin.Context)

func (*CollectionRouteGetCostReportsRequest) Validate

type CollectionRouteGetCostReportsResponse

type CollectionRouteGetCostReportsResponse = *runtime.ResponseCollection

type CollectionRouteGetSummaryClusterCostsRequest

type CollectionRouteGetSummaryClusterCostsRequest struct {
	StartTime   time.Time `json:"startTime,omitempty"`
	EndTime     time.Time `json:"endTime,omitempty"`
	ConnectorID object.ID `json:"connectorID,omitempty"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetSummaryClusterCostsRequest) SetGinContext

func (*CollectionRouteGetSummaryClusterCostsRequest) Validate

type CollectionRouteGetSummaryClusterCostsResponse

type CollectionRouteGetSummaryClusterCostsResponse struct {
	Currency           int                 `json:"currency,omitempty"`
	TotalCost          float64             `json:"totalCost,omitempty"`
	AverageDailyCost   float64             `json:"averageDailyCost,omitempty"`
	ItemCost           float64             `json:"itemCost,omitempty"`
	ManagementCost     float64             `json:"managementCost,omitempty"`
	IdleCost           float64             `json:"idleCost,omitempty"`
	CollectedTimeRange *CollectedTimeRange `json:"collectedTimeRange,omitempty"`
}

type CollectionRouteGetSummaryCostsRequest

type CollectionRouteGetSummaryCostsRequest struct {
	StartTime time.Time `json:"startTime,omitempty"`
	EndTime   time.Time `json:"endTime,omitempty"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetSummaryCostsRequest) SetGinContext

func (r *CollectionRouteGetSummaryCostsRequest) SetGinContext(ctx *gin.Context)

func (*CollectionRouteGetSummaryCostsRequest) Validate

type CollectionRouteGetSummaryCostsResponse

type CollectionRouteGetSummaryCostsResponse struct {
	Currency           int                 `json:"currency,omitempty"`
	TotalCost          float64             `json:"totalCost,omitempty"`
	AverageDailyCost   float64             `json:"averageDailyCost,omitempty"`
	ProjectCount       int                 `json:"projectCount,omitempty"`
	ClusterCount       int                 `json:"clusterCount,omitempty"`
	CollectedTimeRange *CollectedTimeRange `json:"collectedTimeRange,omitempty"`
}

type CollectionRouteGetSummaryProjectCostsRequest

type CollectionRouteGetSummaryProjectCostsRequest struct {
	StartTime time.Time `json:"startTime,omitempty"`
	EndTime   time.Time `json:"endTime,omitempty"`
	Project   string    `json:"project,omitempty"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetSummaryProjectCostsRequest) SetGinContext

func (*CollectionRouteGetSummaryProjectCostsRequest) Validate

type CollectionRouteGetSummaryProjectCostsResponse

type CollectionRouteGetSummaryProjectCostsResponse struct {
	Currency           int                 `json:"currency,omitempty"`
	TotalCost          float64             `json:"totalCost,omitempty"`
	AverageDailyCost   float64             `json:"averageDailyCost,omitempty"`
	CollectedTimeRange *CollectedTimeRange `json:"collectedTimeRange,omitempty"`
}

type CollectionRouteGetSummaryQueriedCostsRequest

type CollectionRouteGetSummaryQueriedCostsRequest struct {
	StartTime     time.Time                `json:"startTime,omitempty"`
	EndTime       time.Time                `json:"endTime,omitempty"`
	Filters       types.CostFilters        `json:"filters,omitempty"`
	SharedOptions *types.SharedCostOptions `json:"sharedOptions,omitempty"`

	Context *gin.Context
	// contains filtered or unexported fields
}

func (*CollectionRouteGetSummaryQueriedCostsRequest) SetGinContext

func (*CollectionRouteGetSummaryQueriedCostsRequest) Validate

type CollectionRouteGetSummaryQueriedCostsResponse

type CollectionRouteGetSummaryQueriedCostsResponse struct {
	distributor.Cost `json:",inline"`

	AverageDailyCost   float64             `json:"averageDailyCost,omitempty"`
	ConnectorCount     int                 `json:"connectorCount,omitempty"`
	CollectedTimeRange *CollectedTimeRange `json:"collectedTimeRange,omitempty"`
}

type Handler

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

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) Kind

func (Handler) Kind() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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