@@ -12,10 +12,10 @@ type CostRepo interface {
12
12
CostUpsert (ctx context.Context , arg []gensql.CostUpsertParams ) * gensql.CostUpsertBatchResults
13
13
DailyCostForApp (ctx context.Context , fromDate pgtype.Date , toDate pgtype.Date , environment string , teamSlug slug.Slug , app string ) ([]* gensql.Cost , error )
14
14
DailyCostForTeam (ctx context.Context , fromDate pgtype.Date , toDate pgtype.Date , teamSlug slug.Slug ) ([]* gensql.Cost , error )
15
- DailyEnvCostForTeam (ctx context.Context , fromDate pgtype.Date , toDate pgtype.Date , environment * string , teamSlug slug.Slug ) ([]* gensql.DailyEnvCostForTeamRow , error )
15
+ DailyEnvCostForTeam (ctx context.Context , fromDate pgtype.Date , toDate pgtype.Date , environment * string , teamSlug slug.Slug ) ([]* gensql.CostDailyTeam , error )
16
16
LastCostDate (ctx context.Context ) (pgtype.Date , error )
17
- MonthlyCostForApp (ctx context.Context , teamSlug slug.Slug , app string , environment string ) ([]* gensql.MonthlyCostForAppRow , error )
18
- MonthlyCostForTeam (ctx context.Context , teamSlug slug.Slug ) ([]* gensql.MonthlyCostForTeamRow , error )
17
+ MonthlyCostForApp (ctx context.Context , teamSlug slug.Slug , app string , environment string ) ([]* gensql.CostMonthlyApp , error )
18
+ MonthlyCostForTeam (ctx context.Context , teamSlug slug.Slug ) ([]* gensql.CostMonthlyTeam , error )
19
19
}
20
20
21
21
var _ CostRepo = (* database )(nil )
@@ -42,7 +42,7 @@ func (d *database) DailyCostForTeam(ctx context.Context, fromDate pgtype.Date, t
42
42
})
43
43
}
44
44
45
- func (d * database ) DailyEnvCostForTeam (ctx context.Context , fromDate pgtype.Date , toDate pgtype.Date , environment * string , teamSlug slug.Slug ) ([]* gensql.DailyEnvCostForTeamRow , error ) {
45
+ func (d * database ) DailyEnvCostForTeam (ctx context.Context , fromDate pgtype.Date , toDate pgtype.Date , environment * string , teamSlug slug.Slug ) ([]* gensql.CostDailyTeam , error ) {
46
46
return d .querier .DailyEnvCostForTeam (ctx , gensql.DailyEnvCostForTeamParams {
47
47
FromDate : fromDate ,
48
48
ToDate : toDate ,
@@ -55,14 +55,14 @@ func (d *database) LastCostDate(ctx context.Context) (pgtype.Date, error) {
55
55
return d .querier .LastCostDate (ctx )
56
56
}
57
57
58
- func (d * database ) MonthlyCostForApp (ctx context.Context , teamSlug slug.Slug , app string , environment string ) ([]* gensql.MonthlyCostForAppRow , error ) {
58
+ func (d * database ) MonthlyCostForApp (ctx context.Context , teamSlug slug.Slug , app string , environment string ) ([]* gensql.CostMonthlyApp , error ) {
59
59
return d .querier .MonthlyCostForApp (ctx , gensql.MonthlyCostForAppParams {
60
60
TeamSlug : teamSlug ,
61
61
App : app ,
62
62
Environment : environment ,
63
63
})
64
64
}
65
65
66
- func (d * database ) MonthlyCostForTeam (ctx context.Context , teamSlug slug.Slug ) ([]* gensql.MonthlyCostForTeamRow , error ) {
66
+ func (d * database ) MonthlyCostForTeam (ctx context.Context , teamSlug slug.Slug ) ([]* gensql.CostMonthlyTeam , error ) {
67
67
return d .querier .MonthlyCostForTeam (ctx , teamSlug )
68
68
}
0 commit comments