Documentation ¶
Index ¶
- 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() (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 MockMeasurements ¶ added in v1.9.1
MockMeasurements is an autogenerated mock type for the Measurements type
func NewMockMeasurements ¶ added in v1.9.1
func NewMockMeasurements(t mockConstructorTestingTNewMockMeasurements) *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.
func (*MockMeasurements) AgentMetrics ¶ added in v1.9.1
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 ¶ added in v1.9.1
func (_m *MockMeasurements) Clear()
Clear provides a mock function with given fields:
func (*MockMeasurements) ConfigurationMetrics ¶ added in v1.9.1
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 ¶ added in v1.9.1
func (_m *MockMeasurements) MeasurementsSize() (int, error)
MeasurementsSize provides a mock function with given fields:
func (*MockMeasurements) OverviewMetrics ¶ added in v1.9.1
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 ¶ added in v1.9.1
func (_m *MockMeasurements) ProcessMetrics(ctx context.Context) error
ProcessMetrics provides a mock function with given fields: ctx
func (*MockMeasurements) SaveAgentMetrics ¶ added in v1.9.1
SaveAgentMetrics provides a mock function with given fields: ctx, metrics