Documentation ¶
Index ¶
Constants ¶
View Source
const IndexPrefixReservedRDSReport = "rds-ri-reports"
View Source
const RDSStsSessionName = "fetch-rds"
View Source
const TemplateNameReservedRDSReport = "rds-ri-reports"
View Source
const TemplateReservedRdsReport = `` /* 1264-byte string literal not displayed */
View Source
const TypeReservedRDSReport = "rds-ri-report"
Variables ¶
This section is empty.
Functions ¶
func FetchDailyInstancesStats ¶
func FetchDailyInstancesStats(ctx context.Context, aa taws.AwsAccount) error
FetchDailyInstanceStats retrieves RDS information from the AWS API and generates a report
Types ¶
type Instance ¶
type Instance struct { InstanceBase Tags []utils.Tag `json:"tags"` }
Instance contains the information of an RDS reserved instance
type InstanceBase ¶
type InstanceBase struct { DBInstanceIdentifier string `json:"id"` DBInstanceOfferingId string `json:"offeringId"` AvailabilityZone string `json:"availabilityZone"` DBInstanceClass string `json:"type"` DBInstanceCount int64 `json:"dbInstanceCount"` Duration int64 `json:"duration"` MultiAZ bool `json:"multiAZ"` ProductDescription string `json:"productDescription"` OfferingType string `json:"offeringType"` State string `json:"state"` StartTime time.Time `json:"startTime"` RecurringCharges []RecurringCharges `json:"recurringCharges"` }
InstanceBase contains basics information of an RDS reserved instance
type InstanceReport ¶
type InstanceReport struct { utils.ReportBase Instance Instance `json:"instance"` }
InstanceReport is saved in ES to have all the information of an RDS reserved instance
type RecurringCharges ¶
RecurringCharges contains recurring charges informations of a reservation
Click to show internal directories.
Click to hide internal directories.