model

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CostControllerEntries

type CostControllerEntries = map[string]CostEntry

type CostControllers

type CostControllers = map[string]CostWithEstimation

type CostEntry

type CostEntry struct {
	Cpu      float64 `json:"cpu,omitempty"`
	Ram      float64 `json:"ram,omitempty"`
	Storage  float64 `json:"storage,omitempty"`
	Requests float64 `json:"requests,omitempty"`
}

func (*CostEntry) Add

func (a *CostEntry) Add(b CostEntry)

type CostOverview

type CostOverview = map[CostType]CostWithEstimation

type CostOverviewEntries

type CostOverviewEntries = map[CostType]CostEntry

type CostTree

type CostTree map[string]CostWithChildren

type CostType

type CostType = string
const CostTypeAnalytics CostType = "analytics"
const CostTypeApiCalls CostType = "API Calls"
const CostTypeDevices CostType = "Devices"
const CostTypeExports CostType = "Exports"
const CostTypeImports CostType = "imports"
const CostTypeProcesses CostType = "process"

type CostWithChildren

type CostWithChildren struct {
	CostWithEstimation
	Children map[string]CostWithChildren `json:"children,omitempty"`
}

type CostWithEstimation

type CostWithEstimation struct {
	Month           CostEntry `json:"month"`
	EstimationMonth CostEntry `json:"estimation_month"`
}

func (*CostWithEstimation) Add

type Estimation

type Estimation struct {
	Min    float64 `json:"min"`
	Mean   float64 `json:"mean"`
	Median float64 `json:"median"`
	Max    float64 `json:"max"`
}

type PricingModel

type PricingModel struct {
	CPU     float64 `json:"CPU"`
	RAM     float64 `json:"RAM"`
	Storage float64 `json:"storage"`
}

func GetPricingModel

func GetPricingModel(filePath string) (model PricingModel, err error)

Jump to

Keyboard shortcuts

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