Documentation ¶
Index ¶
- type MockMeasurementBatcher
- type MockMeasurements
- func (_m *MockMeasurements) AgentMetrics(ctx context.Context, id []string, options ...stats.QueryOption) (stats.MetricData, error)
- func (_m *MockMeasurements) Clear()
- func (_m *MockMeasurements) ConfigurationMetrics(ctx context.Context, name string, options ...stats.QueryOption) (stats.MetricData, error)
- func (_m *MockMeasurements) MeasurementsSize(_a0 context.Context) (int, error)
- func (_m *MockMeasurements) OverviewMetrics(ctx context.Context, options ...stats.QueryOption) (stats.MetricData, error)
- func (_m *MockMeasurements) ProcessMetrics(ctx context.Context) error
- func (_m *MockMeasurements) SaveAgentMetrics(ctx context.Context, metrics []*record.Metric) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMeasurementBatcher ¶ added in v1.26.0
MockMeasurementBatcher is an autogenerated mock type for the MeasurementBatcher type
func NewMockMeasurementBatcher ¶ added in v1.26.0
func NewMockMeasurementBatcher(t interface { mock.TestingT Cleanup(func()) }) *MockMeasurementBatcher
NewMockMeasurementBatcher creates a new instance of MockMeasurementBatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockMeasurementBatcher) AcceptMetrics ¶ added in v1.26.0
func (_m *MockMeasurementBatcher) AcceptMetrics(ctx context.Context, metrics []*record.Metric) error
AcceptMetrics provides a mock function with given fields: ctx, metrics
type MockMeasurements ¶
MockMeasurements is an autogenerated mock type for the Measurements type
func NewMockMeasurements ¶
func NewMockMeasurements(t interface { mock.TestingT Cleanup(func()) }) *MockMeasurements
NewMockMeasurements creates a new instance of MockMeasurements. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockMeasurements) AgentMetrics ¶
func (_m *MockMeasurements) AgentMetrics(ctx context.Context, id []string, options ...stats.QueryOption) (stats.MetricData, error)
AgentMetrics provides a mock function with given fields: ctx, id, options
func (*MockMeasurements) Clear ¶
func (_m *MockMeasurements) Clear()
Clear provides a mock function with given fields:
func (*MockMeasurements) ConfigurationMetrics ¶
func (_m *MockMeasurements) ConfigurationMetrics(ctx context.Context, name string, options ...stats.QueryOption) (stats.MetricData, error)
ConfigurationMetrics provides a mock function with given fields: ctx, name, options
func (*MockMeasurements) MeasurementsSize ¶
func (_m *MockMeasurements) MeasurementsSize(_a0 context.Context) (int, error)
MeasurementsSize provides a mock function with given fields: _a0
func (*MockMeasurements) OverviewMetrics ¶
func (_m *MockMeasurements) OverviewMetrics(ctx context.Context, options ...stats.QueryOption) (stats.MetricData, error)
OverviewMetrics provides a mock function with given fields: ctx, options
func (*MockMeasurements) ProcessMetrics ¶
func (_m *MockMeasurements) ProcessMetrics(ctx context.Context) error
ProcessMetrics provides a mock function with given fields: ctx
func (*MockMeasurements) SaveAgentMetrics ¶
SaveAgentMetrics provides a mock function with given fields: ctx, metrics