metrics

package
v0.0.0-...-d19fc40 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAssertions

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

func ListMetricDescriptors

func ListMetricDescriptors(ctx context.Context, metricClient *monitoring.MetricClient, request *monitoringpb.ListMetricDescriptorsRequest) ([]*metricpb.MetricDescriptor, error)

ListMetricDescriptors calls metricClient.ListMetricDescriptor and converts the returned Iterator to a list.

func ListTimeSeries

TODO upstream to knative/pkg ListTimeSeries calls metricClient.ListTimeSeries and converts the returned Iterator to a list.

func StringifyStackDriverFilter

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

func SumCumulative

func SumCumulative(ts *monitoringpb.TimeSeries) int64

func SumDistCount

func SumDistCount(ts *monitoringpb.TimeSeries) int64

Types

type Assertion

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

Jump to

Keyboard shortcuts

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