mock_alarm

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_alarm is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockActivationService

type MockActivationService struct {
	// contains filtered or unexported fields
}

MockActivationService is a mock of ActivationService interface.

func NewMockActivationService

func NewMockActivationService(ctrl *gomock.Controller) *MockActivationService

NewMockActivationService creates a new mock instance.

func (*MockActivationService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockActivationService) Process

func (m *MockActivationService) Process(arg0 context.Context, arg1 types.Alarm, arg2 datetime.MicroTime, arg3 string, arg4 bool) (bool, error)

Process mocks base method.

type MockActivationServiceMockRecorder

type MockActivationServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockActivationServiceMockRecorder is the mock recorder for MockActivationService.

func (*MockActivationServiceMockRecorder) Process

func (mr *MockActivationServiceMockRecorder) Process(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Process indicates an expected call of Process.

type MockAdapter

type MockAdapter struct {
	// contains filtered or unexported fields
}

MockAdapter is a mock of Adapter interface.

func NewMockAdapter

func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter

NewMockAdapter creates a new mock instance.

func (*MockAdapter) CopyAlarmToResolvedCollection

func (m *MockAdapter) CopyAlarmToResolvedCollection(arg0 context.Context, arg1 types.Alarm) error

CopyAlarmToResolvedCollection mocks base method.

func (*MockAdapter) CountResolvedAlarm

func (m *MockAdapter) CountResolvedAlarm(arg0 context.Context, arg1 []string) (int, error)

CountResolvedAlarm mocks base method.

func (*MockAdapter) DeleteResolvedAlarms

func (m *MockAdapter) DeleteResolvedAlarms(arg0 context.Context, arg1 time.Duration) error

DeleteResolvedAlarms mocks base method.

func (*MockAdapter) EXPECT

func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAdapter) FindToCheckPbehaviorInfo

func (m *MockAdapter) FindToCheckPbehaviorInfo(arg0 context.Context, arg1 datetime.CpsTime, arg2 []string) (mongo.Cursor, error)

FindToCheckPbehaviorInfo mocks base method.

func (*MockAdapter) GetAlarmByAlarmId

func (m *MockAdapter) GetAlarmByAlarmId(arg0 context.Context, arg1 string) (types.Alarm, error)

GetAlarmByAlarmId mocks base method.

func (*MockAdapter) GetAlarmsWithCancelMark

func (m *MockAdapter) GetAlarmsWithCancelMark(arg0 context.Context) ([]types.Alarm, error)

GetAlarmsWithCancelMark mocks base method.

func (*MockAdapter) GetAlarmsWithFlappingStatus

func (m *MockAdapter) GetAlarmsWithFlappingStatus(arg0 context.Context) ([]types.AlarmWithEntity, error)

GetAlarmsWithFlappingStatus mocks base method.

func (*MockAdapter) GetAlarmsWithSnoozeMark

func (m *MockAdapter) GetAlarmsWithSnoozeMark(arg0 context.Context) ([]types.Alarm, error)

GetAlarmsWithSnoozeMark mocks base method.

func (*MockAdapter) GetAlarmsWithoutTicketByComponent

func (m *MockAdapter) GetAlarmsWithoutTicketByComponent(arg0 context.Context, arg1 string) ([]types.AlarmWithEntity, error)

GetAlarmsWithoutTicketByComponent mocks base method.

func (*MockAdapter) GetCountOpenedAlarmsByIDs

func (m *MockAdapter) GetCountOpenedAlarmsByIDs(arg0 context.Context, arg1 []string) (int64, error)

GetCountOpenedAlarmsByIDs mocks base method.

func (*MockAdapter) GetLastAlarmByEntityID

func (m *MockAdapter) GetLastAlarmByEntityID(arg0 context.Context, arg1 string) (*types.Alarm, error)

GetLastAlarmByEntityID mocks base method.

func (*MockAdapter) GetOpenedAlarmByAlarmId

func (m *MockAdapter) GetOpenedAlarmByAlarmId(arg0 context.Context, arg1 string) (types.Alarm, error)

GetOpenedAlarmByAlarmId mocks base method.

func (*MockAdapter) GetOpenedAlarmsByAlarmIDs

func (m *MockAdapter) GetOpenedAlarmsByAlarmIDs(arg0 context.Context, arg1 []string, arg2 *[]types.Alarm) error

GetOpenedAlarmsByAlarmIDs mocks base method.

func (*MockAdapter) GetOpenedAlarmsByConnectorIdleRules

func (m *MockAdapter) GetOpenedAlarmsByConnectorIdleRules(arg0 context.Context) ([]types.Alarm, error)

GetOpenedAlarmsByConnectorIdleRules mocks base method.

func (*MockAdapter) GetOpenedAlarmsByIDs

func (m *MockAdapter) GetOpenedAlarmsByIDs(arg0 context.Context, arg1 []string, arg2 *[]types.Alarm) error

GetOpenedAlarmsByIDs mocks base method.

func (*MockAdapter) GetOpenedAlarmsWithEntity

func (m *MockAdapter) GetOpenedAlarmsWithEntity(arg0 context.Context) (mongo.Cursor, error)

GetOpenedAlarmsWithEntity mocks base method.

func (*MockAdapter) GetOpenedAlarmsWithEntityByIDs

func (m *MockAdapter) GetOpenedAlarmsWithEntityByIDs(arg0 context.Context, arg1 []string, arg2 *[]types.AlarmWithEntity) error

GetOpenedAlarmsWithEntityByIDs mocks base method.

func (*MockAdapter) GetOpenedAlarmsWithLastDatesBefore

func (m *MockAdapter) GetOpenedAlarmsWithLastDatesBefore(arg0 context.Context, arg1 datetime.CpsTime) (mongo.Cursor, error)

GetOpenedAlarmsWithLastDatesBefore mocks base method.

func (*MockAdapter) GetWorstAlarmStateAndMaxLastEventDate

func (m *MockAdapter) GetWorstAlarmStateAndMaxLastEventDate(arg0 context.Context, arg1 []string) (int64, int64, error)

GetWorstAlarmStateAndMaxLastEventDate mocks base method.

func (*MockAdapter) UpdateLastEventDate

func (m *MockAdapter) UpdateLastEventDate(arg0 context.Context, arg1 []string, arg2 datetime.CpsTime) error

UpdateLastEventDate mocks base method.

type MockAdapterMockRecorder

type MockAdapterMockRecorder struct {
	// contains filtered or unexported fields
}

MockAdapterMockRecorder is the mock recorder for MockAdapter.

func (*MockAdapterMockRecorder) CopyAlarmToResolvedCollection

func (mr *MockAdapterMockRecorder) CopyAlarmToResolvedCollection(arg0, arg1 interface{}) *gomock.Call

CopyAlarmToResolvedCollection indicates an expected call of CopyAlarmToResolvedCollection.

func (*MockAdapterMockRecorder) CountResolvedAlarm

func (mr *MockAdapterMockRecorder) CountResolvedAlarm(arg0, arg1 interface{}) *gomock.Call

CountResolvedAlarm indicates an expected call of CountResolvedAlarm.

func (*MockAdapterMockRecorder) DeleteResolvedAlarms

func (mr *MockAdapterMockRecorder) DeleteResolvedAlarms(arg0, arg1 interface{}) *gomock.Call

DeleteResolvedAlarms indicates an expected call of DeleteResolvedAlarms.

func (*MockAdapterMockRecorder) FindToCheckPbehaviorInfo

func (mr *MockAdapterMockRecorder) FindToCheckPbehaviorInfo(arg0, arg1, arg2 interface{}) *gomock.Call

FindToCheckPbehaviorInfo indicates an expected call of FindToCheckPbehaviorInfo.

func (*MockAdapterMockRecorder) GetAlarmByAlarmId

func (mr *MockAdapterMockRecorder) GetAlarmByAlarmId(arg0, arg1 interface{}) *gomock.Call

GetAlarmByAlarmId indicates an expected call of GetAlarmByAlarmId.

func (*MockAdapterMockRecorder) GetAlarmsWithCancelMark

func (mr *MockAdapterMockRecorder) GetAlarmsWithCancelMark(arg0 interface{}) *gomock.Call

GetAlarmsWithCancelMark indicates an expected call of GetAlarmsWithCancelMark.

func (*MockAdapterMockRecorder) GetAlarmsWithFlappingStatus

func (mr *MockAdapterMockRecorder) GetAlarmsWithFlappingStatus(arg0 interface{}) *gomock.Call

GetAlarmsWithFlappingStatus indicates an expected call of GetAlarmsWithFlappingStatus.

func (*MockAdapterMockRecorder) GetAlarmsWithSnoozeMark

func (mr *MockAdapterMockRecorder) GetAlarmsWithSnoozeMark(arg0 interface{}) *gomock.Call

GetAlarmsWithSnoozeMark indicates an expected call of GetAlarmsWithSnoozeMark.

func (*MockAdapterMockRecorder) GetAlarmsWithoutTicketByComponent

func (mr *MockAdapterMockRecorder) GetAlarmsWithoutTicketByComponent(arg0, arg1 interface{}) *gomock.Call

GetAlarmsWithoutTicketByComponent indicates an expected call of GetAlarmsWithoutTicketByComponent.

func (*MockAdapterMockRecorder) GetCountOpenedAlarmsByIDs

func (mr *MockAdapterMockRecorder) GetCountOpenedAlarmsByIDs(arg0, arg1 interface{}) *gomock.Call

GetCountOpenedAlarmsByIDs indicates an expected call of GetCountOpenedAlarmsByIDs.

func (*MockAdapterMockRecorder) GetLastAlarmByEntityID

func (mr *MockAdapterMockRecorder) GetLastAlarmByEntityID(arg0, arg1 interface{}) *gomock.Call

GetLastAlarmByEntityID indicates an expected call of GetLastAlarmByEntityID.

func (*MockAdapterMockRecorder) GetOpenedAlarmByAlarmId

func (mr *MockAdapterMockRecorder) GetOpenedAlarmByAlarmId(arg0, arg1 interface{}) *gomock.Call

GetOpenedAlarmByAlarmId indicates an expected call of GetOpenedAlarmByAlarmId.

func (*MockAdapterMockRecorder) GetOpenedAlarmsByAlarmIDs

func (mr *MockAdapterMockRecorder) GetOpenedAlarmsByAlarmIDs(arg0, arg1, arg2 interface{}) *gomock.Call

GetOpenedAlarmsByAlarmIDs indicates an expected call of GetOpenedAlarmsByAlarmIDs.

func (*MockAdapterMockRecorder) GetOpenedAlarmsByConnectorIdleRules

func (mr *MockAdapterMockRecorder) GetOpenedAlarmsByConnectorIdleRules(arg0 interface{}) *gomock.Call

GetOpenedAlarmsByConnectorIdleRules indicates an expected call of GetOpenedAlarmsByConnectorIdleRules.

func (*MockAdapterMockRecorder) GetOpenedAlarmsByIDs

func (mr *MockAdapterMockRecorder) GetOpenedAlarmsByIDs(arg0, arg1, arg2 interface{}) *gomock.Call

GetOpenedAlarmsByIDs indicates an expected call of GetOpenedAlarmsByIDs.

func (*MockAdapterMockRecorder) GetOpenedAlarmsWithEntity

func (mr *MockAdapterMockRecorder) GetOpenedAlarmsWithEntity(arg0 interface{}) *gomock.Call

GetOpenedAlarmsWithEntity indicates an expected call of GetOpenedAlarmsWithEntity.

func (*MockAdapterMockRecorder) GetOpenedAlarmsWithEntityByIDs

func (mr *MockAdapterMockRecorder) GetOpenedAlarmsWithEntityByIDs(arg0, arg1, arg2 interface{}) *gomock.Call

GetOpenedAlarmsWithEntityByIDs indicates an expected call of GetOpenedAlarmsWithEntityByIDs.

func (*MockAdapterMockRecorder) GetOpenedAlarmsWithLastDatesBefore

func (mr *MockAdapterMockRecorder) GetOpenedAlarmsWithLastDatesBefore(arg0, arg1 interface{}) *gomock.Call

GetOpenedAlarmsWithLastDatesBefore indicates an expected call of GetOpenedAlarmsWithLastDatesBefore.

func (*MockAdapterMockRecorder) GetWorstAlarmStateAndMaxLastEventDate

func (mr *MockAdapterMockRecorder) GetWorstAlarmStateAndMaxLastEventDate(arg0, arg1 interface{}) *gomock.Call

GetWorstAlarmStateAndMaxLastEventDate indicates an expected call of GetWorstAlarmStateAndMaxLastEventDate.

func (*MockAdapterMockRecorder) UpdateLastEventDate

func (mr *MockAdapterMockRecorder) UpdateLastEventDate(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateLastEventDate indicates an expected call of UpdateLastEventDate.

type MockEventProcessor

type MockEventProcessor struct {
	// contains filtered or unexported fields
}

MockEventProcessor is a mock of EventProcessor interface.

func NewMockEventProcessor

func NewMockEventProcessor(ctrl *gomock.Controller) *MockEventProcessor

NewMockEventProcessor creates a new mock instance.

func (*MockEventProcessor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEventProcessor) Process

func (m *MockEventProcessor) Process(arg0 context.Context, arg1 *types.Event) (types.AlarmChange, error)

Process mocks base method.

type MockEventProcessorMockRecorder

type MockEventProcessorMockRecorder struct {
	// contains filtered or unexported fields
}

MockEventProcessorMockRecorder is the mock recorder for MockEventProcessor.

func (*MockEventProcessorMockRecorder) Process

func (mr *MockEventProcessorMockRecorder) Process(arg0, arg1 interface{}) *gomock.Call

Process indicates an expected call of Process.

type MockMetaAlarmEventProcessor

type MockMetaAlarmEventProcessor struct {
	// contains filtered or unexported fields
}

MockMetaAlarmEventProcessor is a mock of MetaAlarmEventProcessor interface.

func NewMockMetaAlarmEventProcessor

func NewMockMetaAlarmEventProcessor(ctrl *gomock.Controller) *MockMetaAlarmEventProcessor

NewMockMetaAlarmEventProcessor creates a new mock instance.

func (*MockMetaAlarmEventProcessor) AttachChildrenToMetaAlarm

func (m *MockMetaAlarmEventProcessor) AttachChildrenToMetaAlarm(arg0 context.Context, arg1 rpc.AxeEvent) (*types.Alarm, []types.Alarm, []types.Event, error)

AttachChildrenToMetaAlarm mocks base method.

func (*MockMetaAlarmEventProcessor) CreateMetaAlarm

func (m *MockMetaAlarmEventProcessor) CreateMetaAlarm(arg0 context.Context, arg1 rpc.AxeEvent) (*types.Alarm, []types.Alarm, error)

CreateMetaAlarm mocks base method.

func (*MockMetaAlarmEventProcessor) DetachChildrenFromMetaAlarm

func (m *MockMetaAlarmEventProcessor) DetachChildrenFromMetaAlarm(arg0 context.Context, arg1 rpc.AxeEvent) (*types.Alarm, error)

DetachChildrenFromMetaAlarm mocks base method.

func (*MockMetaAlarmEventProcessor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMetaAlarmEventProcessor) ProcessAxeRpc

func (m *MockMetaAlarmEventProcessor) ProcessAxeRpc(arg0 context.Context, arg1 rpc.AxeEvent, arg2 rpc.AxeResultEvent) error

ProcessAxeRpc mocks base method.

type MockMetaAlarmEventProcessorMockRecorder

type MockMetaAlarmEventProcessorMockRecorder struct {
	// contains filtered or unexported fields
}

MockMetaAlarmEventProcessorMockRecorder is the mock recorder for MockMetaAlarmEventProcessor.

func (*MockMetaAlarmEventProcessorMockRecorder) AttachChildrenToMetaAlarm

func (mr *MockMetaAlarmEventProcessorMockRecorder) AttachChildrenToMetaAlarm(arg0, arg1 interface{}) *gomock.Call

AttachChildrenToMetaAlarm indicates an expected call of AttachChildrenToMetaAlarm.

func (*MockMetaAlarmEventProcessorMockRecorder) CreateMetaAlarm

func (mr *MockMetaAlarmEventProcessorMockRecorder) CreateMetaAlarm(arg0, arg1 interface{}) *gomock.Call

CreateMetaAlarm indicates an expected call of CreateMetaAlarm.

func (*MockMetaAlarmEventProcessorMockRecorder) DetachChildrenFromMetaAlarm

func (mr *MockMetaAlarmEventProcessorMockRecorder) DetachChildrenFromMetaAlarm(arg0, arg1 interface{}) *gomock.Call

DetachChildrenFromMetaAlarm indicates an expected call of DetachChildrenFromMetaAlarm.

func (*MockMetaAlarmEventProcessorMockRecorder) ProcessAxeRpc

func (mr *MockMetaAlarmEventProcessorMockRecorder) ProcessAxeRpc(arg0, arg1, arg2 interface{}) *gomock.Call

ProcessAxeRpc indicates an expected call of ProcessAxeRpc.

type MockService

type MockService struct {
	// contains filtered or unexported fields
}

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) ResolveCancels

func (m *MockService) ResolveCancels(arg0 context.Context, arg1 config.AlarmConfig) ([]types.Alarm, error)

ResolveCancels mocks base method.

func (*MockService) ResolveClosed

func (m *MockService) ResolveClosed(arg0 context.Context) ([]types.Alarm, error)

ResolveClosed mocks base method.

func (*MockService) ResolveSnoozes

func (m *MockService) ResolveSnoozes(arg0 context.Context, arg1 config.AlarmConfig) ([]types.Alarm, error)

ResolveSnoozes mocks base method.

func (*MockService) UpdateFlappingAlarms

func (m *MockService) UpdateFlappingAlarms(arg0 context.Context) ([]types.Alarm, error)

UpdateFlappingAlarms mocks base method.

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) ResolveCancels

func (mr *MockServiceMockRecorder) ResolveCancels(arg0, arg1 interface{}) *gomock.Call

ResolveCancels indicates an expected call of ResolveCancels.

func (*MockServiceMockRecorder) ResolveClosed

func (mr *MockServiceMockRecorder) ResolveClosed(arg0 interface{}) *gomock.Call

ResolveClosed indicates an expected call of ResolveClosed.

func (*MockServiceMockRecorder) ResolveSnoozes

func (mr *MockServiceMockRecorder) ResolveSnoozes(arg0, arg1 interface{}) *gomock.Call

ResolveSnoozes indicates an expected call of ResolveSnoozes.

func (*MockServiceMockRecorder) UpdateFlappingAlarms

func (mr *MockServiceMockRecorder) UpdateFlappingAlarms(arg0 interface{}) *gomock.Call

UpdateFlappingAlarms indicates an expected call of UpdateFlappingAlarms.

Jump to

Keyboard shortcuts

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