Documentation
¶
Index ¶
- func MetricSqlName(metricType api.MetricType) string
- type Client
- func (c *Client) FetchDirectoryMetrics(ctx context.Context, req *api.FetchDirectoryMetricsRequest) (*api.FetchDirectoryMetricsResponse, error)
- func (c *Client) FetchMetrics(ctx context.Context, req *api.FetchTestMetricsRequest) (*api.FetchTestMetricsResponse, error)
- func (c *Client) Init(sqlDir string) error
- func (c *Client) ListComponents(ctx context.Context, req *api.ListComponentsRequest) (*api.ListComponentsResponse, error)
- func (c *Client) UpdateSummary(ctx context.Context, fromDate civil.Date, toDate civil.Date) error
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 ¶
func (c *Client) FetchDirectoryMetrics(ctx context.Context, req *api.FetchDirectoryMetricsRequest) (*api.FetchDirectoryMetricsResponse, error)
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 ¶
func (c *Client) FetchMetrics(ctx context.Context, req *api.FetchTestMetricsRequest) (*api.FetchTestMetricsResponse, error)
Fetches requested metrics for the provided days and filters
func (*Client) ListComponents ¶
func (c *Client) ListComponents(ctx context.Context, req *api.ListComponentsRequest) (*api.ListComponentsResponse, error)
Lists the available monorail components
Click to show internal directories.
Click to hide internal directories.