Documentation ¶
Index ¶
- Constants
- Variables
- type Report
- type Reporter
- func (r *Reporter) GetServices(timePeriod *costexplorer.DateInterval) (services []string, err error)
- func (r *Reporter) NewServiceDetailReports(startTime, endTime time.Time, granularity string, accounts []string) (*Reports, error)
- func (r *Reporter) NewSummaryReports(startTime, endTime time.Time, granularity string, accounts []string) *Reports
- func (r *Reporter) Run(report *Report) error
- type Reports
Constants ¶
View Source
const (
DateFormat = "2006-01-02"
)
Variables ¶
View Source
var ( Metrics = []*string{ aws.String(costexplorer.MetricUsageQuantity), aws.String(costexplorer.MetricNormalizedUsageAmount), aws.String(costexplorer.MetricBlendedCost), aws.String(costexplorer.MetricUnblendedCost), aws.String(costexplorer.MetricAmortizedCost), aws.String(costexplorer.MetricNetAmortizedCost), aws.String(costexplorer.MetricNetUnblendedCost), } )
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct { Name string Accounts []*string TimePeriod *costexplorer.DateInterval Granularity *string Metrics []*string Filter *costexplorer.Expression GroupBy []*costexplorer.GroupDefinition Output *costexplorer.GetCostAndUsageOutput }
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
func NewReporter ¶
func (*Reporter) GetServices ¶
func (r *Reporter) GetServices(timePeriod *costexplorer.DateInterval) (services []string, err error)
GetServices returns the available names for services (useful to find new services)
func (*Reporter) NewServiceDetailReports ¶
func (*Reporter) NewSummaryReports ¶
Click to show internal directories.
Click to hide internal directories.