Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cost ¶
type Cost struct { ProjectName string `bigquery:"project_name"` Day string `bigquery:"export_time"` Cost float64 `bigquery:"cost"` Currency string `bigquery:"currency"` }
Cost is gcp billing per project and day. c.f. https://cloud.google.com/billing/docs/how-to/export-data-bigquery#billing_data_in
type ProjectCost ¶
type ProjectCost []Cost
ProjectCost is timeseries cost per project
func (ProjectCost) Timeseries ¶
func (p ProjectCost) Timeseries() ([]time.Time, []float64)
Timeseries is convert ProjectCost to X,Y axis.
Click to show internal directories.
Click to hide internal directories.