testmetrics

package
v0.0.0-...-3c039c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricSqlName

func MetricSqlName(metricType api.MetricType) string

MetricSqlName converts a metricType to the corresponding name in our table coumns. These names are lowercase versions of api.MetricType.

Types

type Client

type Client struct {
	BqClient  *bigquery.Client
	ProjectId string
	DataSet   string

	ChromiumTryRdbTable string
	ChromiumCiRdbTable  string
	AttemptsTable       string
	SwarmingTable       string
	// contains filtered or unexported fields
}

Client is used to fetch metrics from a given data source.

func (*Client) FetchDirectoryMetrics

Fetches requested metrics for the provided days and filters for a given directory node. A directory node represents a directory or file and the metrics are the combined metrics of the tests in these locations

func (*Client) FetchMetrics

Fetches requested metrics for the provided days and filters

func (*Client) Init

func (c *Client) Init(sqlDir string) error

Initializes the testmetric client

func (*Client) ListComponents

Lists the available monorail components

func (*Client) UpdateSummary

func (c *Client) UpdateSummary(ctx context.Context, fromDate civil.Date, toDate civil.Date) error

Updates the summary tables between the days in the provided UpdateMetricsTableRequest. All rollups (e.g. weekly/monthly) will be updated as well. The dates are inclusive

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL