monitoring

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MonitoringClient *googlemonitoring.MetricClient

MonitoringClient -_-

Functions

This section is empty.

Types

type Client

type Client struct{}

Client Real Monitoring client.

func (Client) ReadSummarized

func (c Client) ReadSummarized(ctx context.Context, projectID string, filter string, from time.Time, until time.Time, sumWindow int64) ([]int32, error)

ReadSummarized Reads summarized metrics. Specify point in history and window of aggregation.

type MockClient

type MockClient struct{}

MockClient NOOP Monitoring client.

func (MockClient) ReadSummarized

func (m MockClient) ReadSummarized(ctx context.Context, projectID string, filter string, from time.Time, until time.Time, sumWindow int64) ([]int32, error)

ReadSummarized Does nothing.

type Reader

type Reader interface {
	ReadSummarized(ctx context.Context, projectID string, filter string, from time.Time, until time.Time, sumWindow int64) ([]int32, error)
}

Reader Interface for monitoring client.

Jump to

Keyboard shortcuts

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