gcloud_metrics

package
v0.0.0-...-34cbb95 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartGCloudMetrics

func StartGCloudMetrics(ctx context.Context, projects []string, ts oauth2.TokenSource) error

StartGCloudMetrics begins ingesting metrics from the GCloud Monitoring API.

Types

type MetricClient

type MetricClient interface {
	ListTimeSeries(context.Context, *monitoringpb.ListTimeSeriesRequest, ...gax.CallOption) TimeSeriesIterator
}

MetricClient provides an abstraction for monitoring.MetricClient, used for testing.

type TimeSeriesIterator

type TimeSeriesIterator interface {
	Next() (*monitoringpb.TimeSeries, error)
}

TimeSeriesIterator provides an abstraction for monitoring.TimeSeriesIterator, used for testing.

Jump to

Keyboard shortcuts

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