Documentation ¶
Overview ¶
Copyright 2021 The Bazel Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package monitoring provides functionality to report metrics to Google Cloud Monitoring a.k.a. Stackdriver.
Index ¶
- type Client
- func (c *Client) DeleteMetrics(ctx context.Context) error
- func (c *Client) ReportToolchainConfigsGeneration(ctx context.Context, imageName string, success bool) error
- func (c *Client) ReportToolchainConfigsTest(ctx context.Context, imageName string, success bool) error
- func (c *Client) ReportToolchainConfigsUpload(ctx context.Context, imageName string, success bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the handle to interact with Google Cloud Monitoring.
func (*Client) DeleteMetrics ¶
DeleteMetrics deletes all metrics known to this client. Exists for convenience to help with cleanup when metrics are being renamed. Caveat: This only deletes the metric descriptors. Metric data already reported can't be deleted & are deleted according to Cloud Monitoring retention policies. Cloud monitoring will continue to charge for the data until it's deleted by the retention policy. However, deleting the metric descriptors renders the data inaccessible even though they still generate charges.
func (*Client) ReportToolchainConfigsGeneration ¶
func (c *Client) ReportToolchainConfigsGeneration(ctx context.Context, imageName string, success bool) error
ReportToolchainConfigsGeneration reports the completion of toolchain configs generation to Stackdriver.