metrics

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAssertions added in v0.16.0

func CheckAssertions(t *testing.T, assertions ...Assertion)

func NewStackDriverMetricClient

func NewStackDriverMetricClient() (*monitoring.MetricClient, error)

func StringifyStackDriverFilter

func StringifyStackDriverFilter(filter map[string]interface{}) string

func SumCumulative added in v0.16.0

func SumCumulative(ts *monitoringpb.TimeSeries) int64

func SumDistCount added in v0.16.0

func SumDistCount(ts *monitoringpb.TimeSeries) int64

Types

type Assertion added in v0.16.0

type Assertion interface {
	Assert(*monitoring.MetricClient) error
}

type StackDriverListTimeSeriesRequestOption

type StackDriverListTimeSeriesRequestOption func(*monitoringpb.ListTimeSeriesRequest)

StackDriverListTimeSeriesRequestOption enables further configuration of a ListTimeSeriesRequest.

func WithStackDriverAlignmentPeriod

func WithStackDriverAlignmentPeriod(seconds int64) StackDriverListTimeSeriesRequestOption

func WithStackDriverFilter

func WithStackDriverFilter(filter string) StackDriverListTimeSeriesRequestOption

func WithStackDriverInterval

func WithStackDriverInterval(startSecs, endSecs int64) StackDriverListTimeSeriesRequestOption

Jump to

Keyboard shortcuts

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