Documentation
¶
Index ¶
- type Application
- type ApplicationCost
- type Cost
- type RequiredResources
- type Run
- func (run Run) CPUWeightInPeriod(totalRequestedCPUForPeriod int) float64
- func (run Run) GetApplicationsRequiredResource() []Application
- func (run Run) MemoryWeightInPeriod(totalRequestedMemoryForPeriod int) float64
- func (run Run) RequestedCPUByApplications() int
- func (run Run) RequestedMemoryByApplications() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type ApplicationCost ¶
type Cost ¶
type Cost struct { From time.Time To time.Time Applications []ApplicationCost // contains filtered or unexported fields }
Cost holds cost information between from and to time
func (Cost) GetCostBy ¶
func (cost Cost) GetCostBy(appName string) *ApplicationCost
GetCostBy returns application by appName
type RequiredResources ¶
type RequiredResources struct { ID int64 WBS string Application string Environment string Component string CPUMillicore int MemoryMegaBytes int Replicas int }
RequiredResources holds required resources for a single component
type Run ¶
type Run struct { ID int64 MeasuredTimeUTC time.Time ClusterCPUMillicore int ClusterMemoryMegaByte int Resources []RequiredResources }
Run holds all required resources for a time
func (Run) CPUWeightInPeriod ¶
CPUWeightInPeriod weight of a run for a period
func (Run) GetApplicationsRequiredResource ¶
func (run Run) GetApplicationsRequiredResource() []Application
GetApplicationsRequiredResource returns resource requested aggregated on application
func (Run) MemoryWeightInPeriod ¶
MemoryWeightInPeriod weight of a run for a period
func (Run) RequestedCPUByApplications ¶
RequestedCPUByApplications total requested cpu by applications for a run
func (Run) RequestedMemoryByApplications ¶
RequestedMemoryByApplications total requested memory by applications for a run
Click to show internal directories.
Click to hide internal directories.