Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions usage/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ var allowedTimeSteps = map[string]bool{
}

type UsageSummaryRow struct {
UserID string `bigquery:"user_id"`
CreatorID string `bigquery:"creator_id"`
UserID string `bigquery:"user_id" json:"userId"`
CreatorID string `bigquery:"creator_id" json:"creatorId"`

DeliveryUsageMins float64 `bigquery:"delivery_usage_mins"`
TotalUsageMins float64 `bigquery:"transcode_total_usage_mins"`
StorageUsageMins float64 `bigquery:"storage_usage_mins"`
DeliveryUsageMins float64 `bigquery:"delivery_usage_mins" json:"deliveryUsageMins"`
TotalUsageMins float64 `bigquery:"transcode_total_usage_mins" json:"totalUsageMins"`
Copy link
Member Author

@victorges victorges Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While at it, should this be TranscodeUsageMins (or "TranscodeTotalUsageMins") instead? As I think it was stated in other places "total usage" is not very clear about what it means, as it is not really the total usage from the perspective of counting delivery and storage as well.

StorageUsageMins float64 `bigquery:"storage_usage_mins" json:"storageUsageMins"`
}

type BigQuery interface {
Expand Down