Documentation
¶
Overview ¶
Package fake implements test fakes for the cloudmonitoring wrappers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeSeriesCreator ¶
type TimeSeriesCreator struct {
Calls []*monitoringpb.CreateTimeSeriesRequest
Err error
}
TimeSeriesCreator is a fake which implements the TimeSeriesCreator interface.
func (*TimeSeriesCreator) CreateTimeSeries ¶
func (f *TimeSeriesCreator) CreateTimeSeries(ctx context.Context, req *monitoringpb.CreateTimeSeriesRequest, opts ...gax.CallOption) error
type TimeSeriesQuerier ¶
type TimeSeriesQuerier struct {
Calls []*monitoringpb.QueryTimeSeriesRequest
Err error
TS []*mrpb.TimeSeriesData
}
TimeSeriesQuerier is a fake which implements the TimeSeriesQuerier interface.
func (*TimeSeriesQuerier) QueryTimeSeries ¶
func (f *TimeSeriesQuerier) QueryTimeSeries(ctx context.Context, req *monitoringpb.QueryTimeSeriesRequest, ops ...gax.CallOption) ([]*mrpb.TimeSeriesData, error)
Click to show internal directories.
Click to hide internal directories.