Documentation ¶
Index ¶
- func CheckAssertions(t *testing.T, assertions ...Assertion)
- func ListMetricDescriptors(ctx context.Context, metricClient *monitoring.MetricClient, ...) ([]*metricpb.MetricDescriptor, error)
- func ListTimeSeries(ctx context.Context, metricClient *monitoring.MetricClient, ...) ([]*monitoringpb.TimeSeries, error)
- func StringifyStackDriverFilter(filter map[string]interface{}) string
- func SumCumulative(ts *monitoringpb.TimeSeries) int64
- func SumDistCount(ts *monitoringpb.TimeSeries) int64
- type Assertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAssertions ¶
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 ¶
func ListTimeSeries(ctx context.Context, metricClient *monitoring.MetricClient, req *monitoringpb.ListTimeSeriesRequest) ([]*monitoringpb.TimeSeries, error)
TODO upstream to knative/pkg ListTimeSeries calls metricClient.ListTimeSeries and converts the returned Iterator to a list.
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
}
Click to show internal directories.
Click to hide internal directories.