Documentation ¶
Index ¶
- type CollectedTimeRange
- type CollectionRouteGetCostReportsRequest
- type CollectionRouteGetCostReportsResponse
- type CollectionRouteGetSummaryClusterCostsRequest
- type CollectionRouteGetSummaryClusterCostsResponse
- type CollectionRouteGetSummaryCostsRequest
- type CollectionRouteGetSummaryCostsResponse
- type CollectionRouteGetSummaryProjectCostsRequest
- type CollectionRouteGetSummaryProjectCostsResponse
- type CollectionRouteGetSummaryQueriedCostsRequest
- type CollectionRouteGetSummaryQueriedCostsResponse
- type Handler
- func (h Handler) CollectionRouteGetCostReports(req CollectionRouteGetCostReportsRequest) (CollectionRouteGetCostReportsResponse, error)
- func (h Handler) CollectionRouteGetSummaryClusterCosts(req CollectionRouteGetSummaryClusterCostsRequest) (*CollectionRouteGetSummaryClusterCostsResponse, error)
- func (h Handler) CollectionRouteGetSummaryCosts(req CollectionRouteGetSummaryCostsRequest) (*CollectionRouteGetSummaryCostsResponse, error)
- func (h Handler) CollectionRouteGetSummaryProjectCosts(req CollectionRouteGetSummaryProjectCostsRequest) (*CollectionRouteGetSummaryProjectCostsResponse, error)
- func (h Handler) CollectionRouteGetSummaryQueriedCosts(req CollectionRouteGetSummaryQueriedCostsRequest) (*CollectionRouteGetSummaryQueriedCostsResponse, error)
- func (Handler) Kind() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectedTimeRange ¶
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 ¶
func (r *CollectionRouteGetCostReportsRequest) Validate() error
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 (r *CollectionRouteGetSummaryClusterCostsRequest) SetGinContext(ctx *gin.Context)
func (*CollectionRouteGetSummaryClusterCostsRequest) Validate ¶
func (r *CollectionRouteGetSummaryClusterCostsRequest) Validate() error
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 ¶
func (r *CollectionRouteGetSummaryCostsRequest) Validate() error
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 (r *CollectionRouteGetSummaryProjectCostsRequest) SetGinContext(ctx *gin.Context)
func (*CollectionRouteGetSummaryProjectCostsRequest) Validate ¶
func (r *CollectionRouteGetSummaryProjectCostsRequest) Validate() error
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"` Context *gin.Context // contains filtered or unexported fields }
func (*CollectionRouteGetSummaryQueriedCostsRequest) SetGinContext ¶
func (r *CollectionRouteGetSummaryQueriedCostsRequest) SetGinContext(ctx *gin.Context)
func (*CollectionRouteGetSummaryQueriedCostsRequest) Validate ¶
func (r *CollectionRouteGetSummaryQueriedCostsRequest) Validate() error
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 (Handler) CollectionRouteGetCostReports ¶
func (h Handler) CollectionRouteGetCostReports( req CollectionRouteGetCostReportsRequest, ) (CollectionRouteGetCostReportsResponse, error)
func (Handler) CollectionRouteGetSummaryClusterCosts ¶
func (h Handler) CollectionRouteGetSummaryClusterCosts( req CollectionRouteGetSummaryClusterCostsRequest, ) (*CollectionRouteGetSummaryClusterCostsResponse, error)
func (Handler) CollectionRouteGetSummaryCosts ¶
func (h Handler) CollectionRouteGetSummaryCosts( req CollectionRouteGetSummaryCostsRequest, ) (*CollectionRouteGetSummaryCostsResponse, error)
func (Handler) CollectionRouteGetSummaryProjectCosts ¶
func (h Handler) CollectionRouteGetSummaryProjectCosts( req CollectionRouteGetSummaryProjectCostsRequest, ) (*CollectionRouteGetSummaryProjectCostsResponse, error)
func (Handler) CollectionRouteGetSummaryQueriedCosts ¶
func (h Handler) CollectionRouteGetSummaryQueriedCosts( req CollectionRouteGetSummaryQueriedCostsRequest, ) (*CollectionRouteGetSummaryQueriedCostsResponse, error)
Click to show internal directories.
Click to hide internal directories.