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
Click to show internal directories.
Click to hide internal directories.