Documentation ¶
Index ¶
- type AwsCost
- type AwsCostsTracker
- type DBTX
- type DailyCostsDetailedForUnitParams
- type DailyCostsDetailedForUnitRow
- type DailyCostsDetailedParams
- type DailyCostsDetailedRow
- type DailyCostsPerUnitEnvironmentParams
- type DailyCostsPerUnitEnvironmentRow
- type DailyCostsPerUnitParams
- type DailyCostsPerUnitRow
- type InsertParams
- type MonthlyCostsDetailedForUnitParams
- type MonthlyCostsDetailedForUnitRow
- type MonthlyCostsDetailedParams
- type MonthlyCostsDetailedRow
- type MonthlyCostsPerUnitEnvironmentParams
- type MonthlyCostsPerUnitEnvironmentRow
- type MonthlyCostsPerUnitParams
- type MonthlyCostsPerUnitRow
- type MonthlyTotalsTaxSplitParams
- type MonthlyTotalsTaxSplitRow
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) Count(ctx context.Context) (int64, error)
- func (q *Queries) DailyCostsDetailed(ctx context.Context, arg DailyCostsDetailedParams) ([]DailyCostsDetailedRow, error)
- func (q *Queries) DailyCostsDetailedForUnit(ctx context.Context, arg DailyCostsDetailedForUnitParams) ([]DailyCostsDetailedForUnitRow, error)
- func (q *Queries) DailyCostsPerUnit(ctx context.Context, arg DailyCostsPerUnitParams) ([]DailyCostsPerUnitRow, error)
- func (q *Queries) DailyCostsPerUnitEnvironment(ctx context.Context, arg DailyCostsPerUnitEnvironmentParams) ([]DailyCostsPerUnitEnvironmentRow, error)
- func (q *Queries) Insert(ctx context.Context, arg InsertParams) (int, error)
- func (q *Queries) MonthlyCostsDetailed(ctx context.Context, arg MonthlyCostsDetailedParams) ([]MonthlyCostsDetailedRow, error)
- func (q *Queries) MonthlyCostsDetailedForUnit(ctx context.Context, arg MonthlyCostsDetailedForUnitParams) ([]MonthlyCostsDetailedForUnitRow, error)
- func (q *Queries) MonthlyCostsPerUnit(ctx context.Context, arg MonthlyCostsPerUnitParams) ([]MonthlyCostsPerUnitRow, error)
- func (q *Queries) MonthlyCostsPerUnitEnvironment(ctx context.Context, arg MonthlyCostsPerUnitEnvironmentParams) ([]MonthlyCostsPerUnitEnvironmentRow, error)
- func (q *Queries) MonthlyTotalsTaxSplit(ctx context.Context, arg MonthlyTotalsTaxSplitParams) ([]MonthlyTotalsTaxSplitRow, error)
- func (q *Queries) Oldest(ctx context.Context) (string, error)
- func (q *Queries) Total(ctx context.Context, arg TotalParams) (interface{}, error)
- func (q *Queries) Track(ctx context.Context, runDate string) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- func (q *Queries) Youngest(ctx context.Context) (string, error)
- type TotalParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsCost ¶
type AwsCost struct { ID int `json:"id"` Ts string `json:"ts"` Organisation string `json:"organisation"` AccountID string `json:"account_id"` AccountName string `json:"account_name"` Unit string `json:"unit"` Label string `json:"label"` Environment string `json:"environment"` Service string `json:"service"` Region string `json:"region"` Date string `json:"date"` Cost string `json:"cost"` }
func (*AwsCost) Insertable ¶
func (a *AwsCost) Insertable() InsertParams
type AwsCostsTracker ¶
type DailyCostsDetailedForUnitParams ¶ added in v1.1.0
type DailyCostsDetailedForUnitRow ¶ added in v1.1.0
type DailyCostsDetailedRow ¶
type DailyCostsPerUnitEnvironmentRow ¶
type DailyCostsPerUnitEnvironmentRow struct { Unit string `json:"unit"` Environment interface{} `json:"environment"` Total interface{} `json:"total"` Interval interface{} `json:"interval"` }
type DailyCostsPerUnitParams ¶
type DailyCostsPerUnitRow ¶
type DailyCostsPerUnitRow struct { Unit string `json:"unit"` Total interface{} `json:"total"` Interval interface{} `json:"interval"` }
type InsertParams ¶
type InsertParams struct { Ts string `json:"ts"` Organisation string `json:"organisation"` AccountID string `json:"account_id"` AccountName string `json:"account_name"` Unit string `json:"unit"` Label string `json:"label"` Environment string `json:"environment"` Service string `json:"service"` Region string `json:"region"` Date string `json:"date"` Cost string `json:"cost"` }
type MonthlyCostsDetailedForUnitParams ¶ added in v1.1.0
type MonthlyCostsDetailedForUnitRow ¶ added in v1.1.0
type MonthlyCostsDetailedRow ¶
type MonthlyCostsPerUnitEnvironmentRow ¶
type MonthlyCostsPerUnitEnvironmentRow struct { Unit string `json:"unit"` Environment interface{} `json:"environment"` Total interface{} `json:"total"` Interval interface{} `json:"interval"` }
type MonthlyCostsPerUnitRow ¶
type MonthlyCostsPerUnitRow struct { Unit string `json:"unit"` Total interface{} `json:"total"` Interval interface{} `json:"interval"` }
type MonthlyTotalsTaxSplitRow ¶
type MonthlyTotalsTaxSplitRow struct { Service string `json:"service"` Total interface{} `json:"total"` Interval interface{} `json:"interval"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DailyCostsDetailed ¶
func (q *Queries) DailyCostsDetailed(ctx context.Context, arg DailyCostsDetailedParams) ([]DailyCostsDetailedRow, error)
func (*Queries) DailyCostsDetailedForUnit ¶ added in v1.1.0
func (q *Queries) DailyCostsDetailedForUnit(ctx context.Context, arg DailyCostsDetailedForUnitParams) ([]DailyCostsDetailedForUnitRow, error)
func (*Queries) DailyCostsPerUnit ¶
func (q *Queries) DailyCostsPerUnit(ctx context.Context, arg DailyCostsPerUnitParams) ([]DailyCostsPerUnitRow, error)
func (*Queries) DailyCostsPerUnitEnvironment ¶
func (q *Queries) DailyCostsPerUnitEnvironment(ctx context.Context, arg DailyCostsPerUnitEnvironmentParams) ([]DailyCostsPerUnitEnvironmentRow, error)
func (*Queries) MonthlyCostsDetailed ¶
func (q *Queries) MonthlyCostsDetailed(ctx context.Context, arg MonthlyCostsDetailedParams) ([]MonthlyCostsDetailedRow, error)
func (*Queries) MonthlyCostsDetailedForUnit ¶ added in v1.1.0
func (q *Queries) MonthlyCostsDetailedForUnit(ctx context.Context, arg MonthlyCostsDetailedForUnitParams) ([]MonthlyCostsDetailedForUnitRow, error)
func (*Queries) MonthlyCostsPerUnit ¶
func (q *Queries) MonthlyCostsPerUnit(ctx context.Context, arg MonthlyCostsPerUnitParams) ([]MonthlyCostsPerUnitRow, error)
func (*Queries) MonthlyCostsPerUnitEnvironment ¶
func (q *Queries) MonthlyCostsPerUnitEnvironment(ctx context.Context, arg MonthlyCostsPerUnitEnvironmentParams) ([]MonthlyCostsPerUnitEnvironmentRow, error)
func (*Queries) MonthlyTotalsTaxSplit ¶
func (q *Queries) MonthlyTotalsTaxSplit(ctx context.Context, arg MonthlyTotalsTaxSplitParams) ([]MonthlyTotalsTaxSplitRow, error)
type TotalParams ¶
Click to show internal directories.
Click to hide internal directories.