Versions in this module Expand all Collapse all v0 v0.1.2 Jan 22, 2021 Changes in this version + type Application struct + Name string + RequestedCPUMillicore int + RequestedCPUPercentageOfRun float64 + RequestedMemoryMegaByte int + RequestedMemoryPercentageOfRun float64 + type ApplicationCost struct + CostPercentageByCPU float64 + CostPercentageByMemory float64 + Name string + WBS string + type Cost struct + Applications []ApplicationCost + From time.Time + To time.Time + func NewCost(from, to time.Time, runs []Run) Cost + func (cost Cost) GetCostBy(appName string) *ApplicationCost + type RequiredResources struct + Application string + CPUMillicore int + Component string + Environment string + ID int64 + MemoryMegaBytes int + Replicas int + WBS string + type Run struct + ClusterCPUMillicore int + ClusterMemoryMegaByte int + ID int64 + MeasuredTimeUTC time.Time + Resources []RequiredResources + 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