Documentation
¶
Index ¶
- Variables
- func CheckBillingDataCompleted(ctx context.Context, startDate time.Time, endDate time.Time, aa aws.AwsAccount) (bool, error)
- func FetchHistoryInfos(ctx context.Context, aa aws.AwsAccount) (bool, error)
- func GetHistoryDate() (time.Time, time.Time)
- type EsCostPerRegionResult
- type EsRegionPerResourceResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBillingDataIncomplete = errors.New("Billing data are not completed")
Functions ¶
func CheckBillingDataCompleted ¶
func CheckBillingDataCompleted(ctx context.Context, startDate time.Time, endDate time.Time, aa aws.AwsAccount) (bool, error)
CheckBillingDataCompleted checks if billing data in ES are complete. If they are complete it returns true, otherwise it returns false.
func FetchHistoryInfos ¶
FetchHistoryInfos fetches billing data and stats of EC2 and RDS instances of the last month
Types ¶
type EsCostPerRegionResult ¶
type EsRegionPerResourceResult ¶
type EsRegionPerResourceResult struct { Resources struct { Buckets []struct { Resource string `json:"key"` Regions EsCostPerRegionResult `json:"regions"` } `json:"buckets"` } `json:"products"` }
structures that allows to parse ES result
Click to show internal directories.
Click to hide internal directories.