engine

package
v0.0.0-...-c147f4e Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//TeamSelector is the selector for spliting by team
	TeamSelector = costexplorer.GroupDefinition{
		Key:  aws.String("billed-team"),
		Type: aws.String(costexplorer.GroupDefinitionTypeTag),
	}
	//ServiceSelector is the selector for splitting by services
	ServiceSelector = costexplorer.GroupDefinition{
		Key:  aws.String("billed-service"),
		Type: aws.String(costexplorer.GroupDefinitionTypeTag),
	}
)

Functions

func Display

func Display(elements *Elements)

Display is rendering function

Types

type Elements

type Elements struct {
	Marker     string
	TimeFrames []string
	Elements   map[string][]float64
	Totals     []float64
}

Elements is the set of results

func Extract

func Extract(selector costexplorer.GroupDefinition) *Elements

Extract is the function that extract the selection from aws

func NewElements

func NewElements(frameSize int, marker string) *Elements

NewElements is a constructor for Elements type

Jump to

Keyboard shortcuts

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