Documentation ¶
Index ¶
- type CostDataReader
- func (s *CostDataReader) GetDailyCost(ctx context.Context, day string, isGroupByProduct bool) (data.DailyBilling, error)
- func (s *CostDataReader) GetDaysCost(ctx context.Context, isGroupByProduct bool, days ...string) ([]data.DailyBilling, error)
- func (s *CostDataReader) GetMonthlyCost(ctx context.Context, month string, isGroupByProduct bool) (data.MonthlyBilling, error)
- func (s *CostDataReader) GetMonthsCost(ctx context.Context, isGroupByProduct bool, months ...string) ([]data.MonthlyBilling, error)
- type UtilizationDataReader
- func (s *UtilizationDataReader) GetAllRegionMap(ctx context.Context) (map[string]string, error)
- func (s *UtilizationDataReader) GetDailyCpuUtilization(ctx context.Context, day string, p providers.Provider, instanceIds []string) (data.DailyCpuUtilization, error)
- func (s *UtilizationDataReader) GetDailyMemoryUtilization(ctx context.Context, p providers.Provider, instanceIds []string, day string) (data.DailyMemoryUtilization, error)
- func (s *UtilizationDataReader) GetDaysCpuUtilization(ctx context.Context, p providers.Provider, instanceIds []string, ...) ([]data.DailyCpuUtilization, error)
- func (s *UtilizationDataReader) GetDaysMemoryUtilization(ctx context.Context, p providers.Provider, instanceIds []string, ...) ([]data.DailyMemoryUtilization, error)
- func (s *UtilizationDataReader) GetInstanceByRegionProvider(ctx context.Context, p providers.Provider, regionId string) ([]data.InstanceDetail, error)
- func (s *UtilizationDataReader) GetInstanceList(ctx context.Context, instanceIdList ...string) ([]data.InstanceDetail, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CostDataReader ¶
type CostDataReader struct {
// contains filtered or unexported fields
}
func NewCostDataReader ¶
func NewCostDataReader(p providers.Provider) *CostDataReader
func (*CostDataReader) GetDailyCost ¶
func (s *CostDataReader) GetDailyCost(ctx context.Context, day string, isGroupByProduct bool) (data.DailyBilling, error)
GetDailyCost date 2022-09-06 | isGroupByProduct true/false
func (*CostDataReader) GetDaysCost ¶
func (s *CostDataReader) GetDaysCost(ctx context.Context, isGroupByProduct bool, days ...string) ([]data.DailyBilling, error)
GetDaysCost days ["2022-10-01","2022-10-02",]
func (*CostDataReader) GetMonthlyCost ¶
func (s *CostDataReader) GetMonthlyCost(ctx context.Context, month string, isGroupByProduct bool) (data.MonthlyBilling, error)
GetMonthlyCost month 2022-09
func (*CostDataReader) GetMonthsCost ¶
func (s *CostDataReader) GetMonthsCost(ctx context.Context, isGroupByProduct bool, months ...string) ([]data.MonthlyBilling, error)
GetMonthsCost
type UtilizationDataReader ¶
type UtilizationDataReader struct {
// contains filtered or unexported fields
}
func NewUtilization ¶
func NewUtilization(p providers.Provider) *UtilizationDataReader
func (*UtilizationDataReader) GetAllRegionMap ¶
GetAllRegionMap k->v: regionId->regionName
func (*UtilizationDataReader) GetDailyCpuUtilization ¶
func (s *UtilizationDataReader) GetDailyCpuUtilization(ctx context.Context, day string, p providers.Provider, instanceIds []string) (data.DailyCpuUtilization, error)
GetDailyCpuUtilization
func (*UtilizationDataReader) GetDailyMemoryUtilization ¶
func (s *UtilizationDataReader) GetDailyMemoryUtilization(ctx context.Context, p providers.Provider, instanceIds []string, day string) (data.DailyMemoryUtilization, error)
func (*UtilizationDataReader) GetDaysCpuUtilization ¶
func (s *UtilizationDataReader) GetDaysCpuUtilization(ctx context.Context, p providers.Provider, instanceIds []string, days ...string) ([]data.DailyCpuUtilization, error)
func (*UtilizationDataReader) GetDaysMemoryUtilization ¶
func (s *UtilizationDataReader) GetDaysMemoryUtilization(ctx context.Context, p providers.Provider, instanceIds []string, days ...string) ([]data.DailyMemoryUtilization, error)
func (*UtilizationDataReader) GetInstanceByRegionProvider ¶ added in v0.2.1
func (s *UtilizationDataReader) GetInstanceByRegionProvider(ctx context.Context, p providers.Provider, regionId string) ([]data.InstanceDetail, error)
func (*UtilizationDataReader) GetInstanceList ¶
func (s *UtilizationDataReader) GetInstanceList(ctx context.Context, instanceIdList ...string) ([]data.InstanceDetail, error)
Click to show internal directories.
Click to hide internal directories.