ec2Coverage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const IndexPrefixEC2CoverageReport = "ec2-coverage-reports"
View Source
const TemplateEc2CoverageReport = `` /* 935-byte string literal not displayed */
View Source
const TemplateNameEC2CoverageReport = "ec2-coverage-reports"
View Source
const TypeEC2CoverageReport = "ec2-coverage-report"

Variables

This section is empty.

Functions

func PutEc2MonthlyCoverageReport

func PutEc2MonthlyCoverageReport(ctx context.Context, aa taws.AwsAccount, start, end time.Time) (bool, error)

PutEc2MonthlyCoverageReport puts a monthly report of EC2 reservation in ES

Types

type Reservation

type Reservation struct {
	Type              string   `json:"type"`
	Platform          string   `json:"platform"`
	Tenancy           string   `json:"tenancy"`
	Region            string   `json:"region"`
	AverageCoverage   float64  `json:"averageCoverage"`
	CoveredHours      float64  `json:"coveredHours"`
	OnDemandHours     float64  `json:"onDemandHours"`
	TotalRunningHours float64  `json:"totalRunningHours"`
	InstancesNames    []string `json:"instancesNames"`
}

Reservation contains basics information of an EC2 reservation

type ReservationReport

type ReservationReport struct {
	utils.ReportBase
	Reservation Reservation `json:"reservation"`
}

ReservationReport is saved in ES to have all the information of an EC2 reservation

Jump to

Keyboard shortcuts

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