Documentation ¶
Index ¶
- func AllProjects(ctx context.Context) (list []string)
- func IsBigQueryEnabled(client *asset.Client, ctx context.Context, projectID string) bool
- func RunBigQuery(ctx context.Context, p model.Params, query string) (model.CostComputation, error)
- func ServiceUsageIsBigQueryEnabled(ctx context.Context, project string) bool
- type StackDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllProjects ¶
func IsBigQueryEnabled ¶
IsBigQueryEnabled returns wheter a GCP project has bigquery.googleapis.com enabled.
func RunBigQuery ¶
Types ¶
type StackDriver ¶
type StackDriver struct {
// contains filtered or unexported fields
}
StackDriver provides the api to send a moneypenny result
func NewStackDriver ¶
func NewStackDriver(projectID string) (*StackDriver, error)
NewStackDriver create a connected StackDriver for a given project for which metrics are created.
func (*StackDriver) SendMetrics ¶
func (s *StackDriver) SendMetrics(opex string, lines []model.LabeledCost, dryrun bool) error
SendReport will sends metrics to StackDriver using measurements of a samples.
Click to show internal directories.
Click to hide internal directories.