Documentation ¶
Overview ¶
Package mock_alarm is a generated GoMock package.
Index ¶
- type MockAdapter
- func (m *MockAdapter) CountResolvedAlarm(arg0 []string) (int, error)
- func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder
- func (m *MockAdapter) Get(arg0 bson.M, arg1 *[]types.Alarm) error
- func (m *MockAdapter) GetAlarmsByID(arg0 string) ([]types.Alarm, error)
- func (m *MockAdapter) GetAlarmsWithCancelMark() ([]types.Alarm, error)
- func (m *MockAdapter) GetAlarmsWithDoneMark() ([]types.Alarm, error)
- func (m *MockAdapter) GetAlarmsWithFlappingStatus() ([]types.Alarm, error)
- func (m *MockAdapter) GetAlarmsWithSnoozeMark() ([]types.Alarm, error)
- func (m *MockAdapter) GetAlarmsWithoutTicketByComponent(arg0 string) ([]types.Alarm, error)
- func (m *MockAdapter) GetAllOpenedResourceAlarmsByComponent(arg0 string) ([]types.Alarm, error)
- func (m *MockAdapter) GetLastAlarm(arg0, arg1, arg2 string) (types.Alarm, error)
- func (m *MockAdapter) GetOpenedAlarm(arg0, arg1, arg2 string) (types.Alarm, error)
- func (m *MockAdapter) GetOpenedAlarmsByAlarmIDs(arg0 []string, arg1 *[]types.Alarm) error
- func (m *MockAdapter) GetOpenedAlarmsByIDs(arg0 []string, arg1 *[]types.Alarm) error
- func (m *MockAdapter) GetOpenedAlarmsWithLastEventDateBefore(arg0 time.Time) ([]types.AlarmWithEntity, error)
- func (m *MockAdapter) GetOpenedAlarmsWithLastUpdateDateBefore(arg0 time.Time) ([]types.AlarmWithEntity, error)
- func (m *MockAdapter) GetOpenedMetaAlarm(arg0 string) (types.Alarm, error)
- func (m *MockAdapter) GetUnacknowledgedAlarmsByComponent(arg0 string) ([]types.Alarm, error)
- func (m *MockAdapter) GetUnresolved() ([]types.Alarm, error)
- func (m *MockAdapter) Insert(arg0 types.Alarm) error
- func (m *MockAdapter) MassUpdate(arg0 []types.Alarm, arg1 bool) error
- func (m *MockAdapter) MassUpdateWithEntity(arg0 []types.AlarmWithEntity) error
- func (m *MockAdapter) RemoveAll() error
- func (m *MockAdapter) RemoveId(arg0 string) error
- func (m *MockAdapter) Update(arg0 types.Alarm) error
- type MockAdapterMockRecorder
- func (mr *MockAdapterMockRecorder) CountResolvedAlarm(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAlarmsByID(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAlarmsWithCancelMark() *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAlarmsWithDoneMark() *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAlarmsWithFlappingStatus() *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAlarmsWithSnoozeMark() *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAlarmsWithoutTicketByComponent(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAllOpenedResourceAlarmsByComponent(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetLastAlarm(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetOpenedAlarm(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetOpenedAlarmsByAlarmIDs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetOpenedAlarmsByIDs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetOpenedAlarmsWithLastEventDateBefore(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetOpenedAlarmsWithLastUpdateDateBefore(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetOpenedMetaAlarm(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetUnacknowledgedAlarmsByComponent(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetUnresolved() *gomock.Call
- func (mr *MockAdapterMockRecorder) Insert(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) MassUpdate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) MassUpdateWithEntity(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) RemoveAll() *gomock.Call
- func (mr *MockAdapterMockRecorder) RemoveId(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) Update(arg0 interface{}) *gomock.Call
- type MockCache
- type MockCacheMockRecorder
- type MockEventExecutor
- type MockEventExecutorContainer
- func (m *MockEventExecutorContainer) EXPECT() *MockEventExecutorContainerMockRecorder
- func (m *MockEventExecutorContainer) Get(arg0 string) (alarm.EventExecutor, bool)
- func (m *MockEventExecutorContainer) Has(arg0 string) bool
- func (m *MockEventExecutorContainer) Set(arg0 string, arg1 alarm.EventExecutor)
- type MockEventExecutorContainerMockRecorder
- type MockEventExecutorMockRecorder
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) FlushCache() error
- func (m *MockService) Get(arg0 bson.M, arg1 *[]types.Alarm) error
- func (m *MockService) GetAlarmsByID(arg0 string) ([]types.Alarm, error)
- func (m *MockService) GetAlarmsWithCancelMark() ([]types.Alarm, error)
- func (m *MockService) GetAlarmsWithDoneMark() ([]types.Alarm, error)
- func (m *MockService) GetAlarmsWithFlappingStatus() ([]types.Alarm, error)
- func (m *MockService) GetAlarmsWithSnoozeMark() ([]types.Alarm, error)
- func (m *MockService) GetLastAlarm(arg0, arg1, arg2 string) (types.Alarm, error)
- func (m *MockService) GetOneByEntityID(arg0, arg1, arg2 string) (types.Alarm, error)
- func (m *MockService) GetOpenedAlarmsByIDs(arg0 []string, arg1 *[]types.Alarm) error
- func (m *MockService) GetUnresolved() ([]types.Alarm, error)
- func (m *MockService) Insert(arg0 types.Alarm) error
- func (m *MockService) MassUpdate(arg0 []types.Alarm) error
- func (m *MockService) ProcessAckResources(arg0 *types.Event, arg1 types.AlarmStep) error
- func (m *MockService) ProcessAlarmEvent(arg0 context.Context, arg1 *types.Event) (types.AlarmChange, error)
- func (m *MockService) ProcessCheckOrWatcher(arg0 *types.Event) (types.AlarmChangeType, error)
- func (m *MockService) ProcessMetaAlarmCreateEvent(arg0 *types.Event) (types.AlarmChangeType, error)
- func (m *MockService) Remove(arg0 types.Alarm) error
- func (m *MockService) RemoveAll() error
- func (m *MockService) ResolveAlarms(arg0 context.Context, arg1 time.Duration) ([]types.Alarm, error)
- func (m *MockService) ResolveCancels(arg0 context.Context, arg1 time.Duration) ([]types.Alarm, error)
- func (m *MockService) ResolveDone(arg0 context.Context) ([]types.Alarm, error)
- func (m *MockService) ResolveSnoozes(arg0 context.Context) ([]types.Alarm, error)
- func (m *MockService) SetTicketWithAckResources(arg0 string, arg1 types.Event, arg2 string, arg3 map[string]string) error
- func (m *MockService) Update(arg0 types.Alarm) error
- func (m *MockService) UpdateFlappingAlarms(arg0 context.Context) ([]types.Alarm, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) FlushCache() *gomock.Call
- func (mr *MockServiceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetAlarmsByID(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetAlarmsWithCancelMark() *gomock.Call
- func (mr *MockServiceMockRecorder) GetAlarmsWithDoneMark() *gomock.Call
- func (mr *MockServiceMockRecorder) GetAlarmsWithFlappingStatus() *gomock.Call
- func (mr *MockServiceMockRecorder) GetAlarmsWithSnoozeMark() *gomock.Call
- func (mr *MockServiceMockRecorder) GetLastAlarm(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetOneByEntityID(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetOpenedAlarmsByIDs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUnresolved() *gomock.Call
- func (mr *MockServiceMockRecorder) Insert(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) MassUpdate(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ProcessAckResources(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ProcessAlarmEvent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ProcessCheckOrWatcher(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ProcessMetaAlarmCreateEvent(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) RemoveAll() *gomock.Call
- func (mr *MockServiceMockRecorder) ResolveAlarms(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ResolveCancels(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ResolveDone(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ResolveSnoozes(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) SetTicketWithAckResources(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateFlappingAlarms(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) CountResolvedAlarm ¶
func (m *MockAdapter) CountResolvedAlarm(arg0 []string) (int, error)
CountResolvedAlarm 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) GetAlarmsByID ¶
func (m *MockAdapter) GetAlarmsByID(arg0 string) ([]types.Alarm, error)
GetAlarmsByID mocks base method
func (*MockAdapter) GetAlarmsWithCancelMark ¶
func (m *MockAdapter) GetAlarmsWithCancelMark() ([]types.Alarm, error)
GetAlarmsWithCancelMark mocks base method
func (*MockAdapter) GetAlarmsWithDoneMark ¶
func (m *MockAdapter) GetAlarmsWithDoneMark() ([]types.Alarm, error)
GetAlarmsWithDoneMark mocks base method
func (*MockAdapter) GetAlarmsWithFlappingStatus ¶
func (m *MockAdapter) GetAlarmsWithFlappingStatus() ([]types.Alarm, error)
GetAlarmsWithFlappingStatus mocks base method
func (*MockAdapter) GetAlarmsWithSnoozeMark ¶
func (m *MockAdapter) GetAlarmsWithSnoozeMark() ([]types.Alarm, error)
GetAlarmsWithSnoozeMark mocks base method
func (*MockAdapter) GetAlarmsWithoutTicketByComponent ¶
func (m *MockAdapter) GetAlarmsWithoutTicketByComponent(arg0 string) ([]types.Alarm, error)
GetAlarmsWithoutTicketByComponent mocks base method
func (*MockAdapter) GetAllOpenedResourceAlarmsByComponent ¶
func (m *MockAdapter) GetAllOpenedResourceAlarmsByComponent(arg0 string) ([]types.Alarm, error)
GetAllOpenedResourceAlarmsByComponent mocks base method
func (*MockAdapter) GetLastAlarm ¶
func (m *MockAdapter) GetLastAlarm(arg0, arg1, arg2 string) (types.Alarm, error)
GetLastAlarm mocks base method
func (*MockAdapter) GetOpenedAlarm ¶
func (m *MockAdapter) GetOpenedAlarm(arg0, arg1, arg2 string) (types.Alarm, error)
GetOpenedAlarm mocks base method
func (*MockAdapter) GetOpenedAlarmsByAlarmIDs ¶
func (m *MockAdapter) GetOpenedAlarmsByAlarmIDs(arg0 []string, arg1 *[]types.Alarm) error
GetOpenedAlarmsByAlarmIDs mocks base method
func (*MockAdapter) GetOpenedAlarmsByIDs ¶
func (m *MockAdapter) GetOpenedAlarmsByIDs(arg0 []string, arg1 *[]types.Alarm) error
GetOpenedAlarmsByIDs mocks base method
func (*MockAdapter) GetOpenedAlarmsWithLastEventDateBefore ¶
func (m *MockAdapter) GetOpenedAlarmsWithLastEventDateBefore(arg0 time.Time) ([]types.AlarmWithEntity, error)
GetOpenedAlarmsWithLastEventDateBefore mocks base method
func (*MockAdapter) GetOpenedAlarmsWithLastUpdateDateBefore ¶
func (m *MockAdapter) GetOpenedAlarmsWithLastUpdateDateBefore(arg0 time.Time) ([]types.AlarmWithEntity, error)
GetOpenedAlarmsWithLastUpdateDateBefore mocks base method
func (*MockAdapter) GetOpenedMetaAlarm ¶
func (m *MockAdapter) GetOpenedMetaAlarm(arg0 string) (types.Alarm, error)
GetOpenedMetaAlarm mocks base method
func (*MockAdapter) GetUnacknowledgedAlarmsByComponent ¶
func (m *MockAdapter) GetUnacknowledgedAlarmsByComponent(arg0 string) ([]types.Alarm, error)
GetUnacknowledgedAlarmsByComponent mocks base method
func (*MockAdapter) GetUnresolved ¶
func (m *MockAdapter) GetUnresolved() ([]types.Alarm, error)
GetUnresolved mocks base method
func (*MockAdapter) Insert ¶
func (m *MockAdapter) Insert(arg0 types.Alarm) error
Insert mocks base method
func (*MockAdapter) MassUpdate ¶
func (m *MockAdapter) MassUpdate(arg0 []types.Alarm, arg1 bool) error
MassUpdate mocks base method
func (*MockAdapter) MassUpdateWithEntity ¶
func (m *MockAdapter) MassUpdateWithEntity(arg0 []types.AlarmWithEntity) error
MassUpdateWithEntity mocks base method
func (*MockAdapter) RemoveId ¶
func (m *MockAdapter) RemoveId(arg0 string) error
RemoveId mocks base method
type MockAdapterMockRecorder ¶
type MockAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockAdapterMockRecorder is the mock recorder for MockAdapter
func (*MockAdapterMockRecorder) CountResolvedAlarm ¶
func (mr *MockAdapterMockRecorder) CountResolvedAlarm(arg0 interface{}) *gomock.Call
CountResolvedAlarm indicates an expected call of CountResolvedAlarm
func (*MockAdapterMockRecorder) Get ¶
func (mr *MockAdapterMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockAdapterMockRecorder) GetAlarmsByID ¶
func (mr *MockAdapterMockRecorder) GetAlarmsByID(arg0 interface{}) *gomock.Call
GetAlarmsByID indicates an expected call of GetAlarmsByID
func (*MockAdapterMockRecorder) GetAlarmsWithCancelMark ¶
func (mr *MockAdapterMockRecorder) GetAlarmsWithCancelMark() *gomock.Call
GetAlarmsWithCancelMark indicates an expected call of GetAlarmsWithCancelMark
func (*MockAdapterMockRecorder) GetAlarmsWithDoneMark ¶
func (mr *MockAdapterMockRecorder) GetAlarmsWithDoneMark() *gomock.Call
GetAlarmsWithDoneMark indicates an expected call of GetAlarmsWithDoneMark
func (*MockAdapterMockRecorder) GetAlarmsWithFlappingStatus ¶
func (mr *MockAdapterMockRecorder) GetAlarmsWithFlappingStatus() *gomock.Call
GetAlarmsWithFlappingStatus indicates an expected call of GetAlarmsWithFlappingStatus
func (*MockAdapterMockRecorder) GetAlarmsWithSnoozeMark ¶
func (mr *MockAdapterMockRecorder) GetAlarmsWithSnoozeMark() *gomock.Call
GetAlarmsWithSnoozeMark indicates an expected call of GetAlarmsWithSnoozeMark
func (*MockAdapterMockRecorder) GetAlarmsWithoutTicketByComponent ¶
func (mr *MockAdapterMockRecorder) GetAlarmsWithoutTicketByComponent(arg0 interface{}) *gomock.Call
GetAlarmsWithoutTicketByComponent indicates an expected call of GetAlarmsWithoutTicketByComponent
func (*MockAdapterMockRecorder) GetAllOpenedResourceAlarmsByComponent ¶
func (mr *MockAdapterMockRecorder) GetAllOpenedResourceAlarmsByComponent(arg0 interface{}) *gomock.Call
GetAllOpenedResourceAlarmsByComponent indicates an expected call of GetAllOpenedResourceAlarmsByComponent
func (*MockAdapterMockRecorder) GetLastAlarm ¶
func (mr *MockAdapterMockRecorder) GetLastAlarm(arg0, arg1, arg2 interface{}) *gomock.Call
GetLastAlarm indicates an expected call of GetLastAlarm
func (*MockAdapterMockRecorder) GetOpenedAlarm ¶
func (mr *MockAdapterMockRecorder) GetOpenedAlarm(arg0, arg1, arg2 interface{}) *gomock.Call
GetOpenedAlarm indicates an expected call of GetOpenedAlarm
func (*MockAdapterMockRecorder) GetOpenedAlarmsByAlarmIDs ¶
func (mr *MockAdapterMockRecorder) GetOpenedAlarmsByAlarmIDs(arg0, arg1 interface{}) *gomock.Call
GetOpenedAlarmsByAlarmIDs indicates an expected call of GetOpenedAlarmsByAlarmIDs
func (*MockAdapterMockRecorder) GetOpenedAlarmsByIDs ¶
func (mr *MockAdapterMockRecorder) GetOpenedAlarmsByIDs(arg0, arg1 interface{}) *gomock.Call
GetOpenedAlarmsByIDs indicates an expected call of GetOpenedAlarmsByIDs
func (*MockAdapterMockRecorder) GetOpenedAlarmsWithLastEventDateBefore ¶
func (mr *MockAdapterMockRecorder) GetOpenedAlarmsWithLastEventDateBefore(arg0 interface{}) *gomock.Call
GetOpenedAlarmsWithLastEventDateBefore indicates an expected call of GetOpenedAlarmsWithLastEventDateBefore
func (*MockAdapterMockRecorder) GetOpenedAlarmsWithLastUpdateDateBefore ¶
func (mr *MockAdapterMockRecorder) GetOpenedAlarmsWithLastUpdateDateBefore(arg0 interface{}) *gomock.Call
GetOpenedAlarmsWithLastUpdateDateBefore indicates an expected call of GetOpenedAlarmsWithLastUpdateDateBefore
func (*MockAdapterMockRecorder) GetOpenedMetaAlarm ¶
func (mr *MockAdapterMockRecorder) GetOpenedMetaAlarm(arg0 interface{}) *gomock.Call
GetOpenedMetaAlarm indicates an expected call of GetOpenedMetaAlarm
func (*MockAdapterMockRecorder) GetUnacknowledgedAlarmsByComponent ¶
func (mr *MockAdapterMockRecorder) GetUnacknowledgedAlarmsByComponent(arg0 interface{}) *gomock.Call
GetUnacknowledgedAlarmsByComponent indicates an expected call of GetUnacknowledgedAlarmsByComponent
func (*MockAdapterMockRecorder) GetUnresolved ¶
func (mr *MockAdapterMockRecorder) GetUnresolved() *gomock.Call
GetUnresolved indicates an expected call of GetUnresolved
func (*MockAdapterMockRecorder) Insert ¶
func (mr *MockAdapterMockRecorder) Insert(arg0 interface{}) *gomock.Call
Insert indicates an expected call of Insert
func (*MockAdapterMockRecorder) MassUpdate ¶
func (mr *MockAdapterMockRecorder) MassUpdate(arg0, arg1 interface{}) *gomock.Call
MassUpdate indicates an expected call of MassUpdate
func (*MockAdapterMockRecorder) MassUpdateWithEntity ¶
func (mr *MockAdapterMockRecorder) MassUpdateWithEntity(arg0 interface{}) *gomock.Call
MassUpdateWithEntity indicates an expected call of MassUpdateWithEntity
func (*MockAdapterMockRecorder) RemoveAll ¶
func (mr *MockAdapterMockRecorder) RemoveAll() *gomock.Call
RemoveAll indicates an expected call of RemoveAll
func (*MockAdapterMockRecorder) RemoveId ¶
func (mr *MockAdapterMockRecorder) RemoveId(arg0 interface{}) *gomock.Call
RemoveId indicates an expected call of RemoveId
func (*MockAdapterMockRecorder) Update ¶
func (mr *MockAdapterMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache is a mock of Cache interface
func NewMockCache ¶
func NewMockCache(ctrl *gomock.Controller) *MockCache
NewMockCache creates a new mock instance
func (*MockCache) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache
func (*MockCacheMockRecorder) Drop ¶
func (mr *MockCacheMockRecorder) Drop(arg0 ...interface{}) *gomock.Call
Drop indicates an expected call of Drop
func (*MockCacheMockRecorder) Flush ¶
func (mr *MockCacheMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush
func (*MockCacheMockRecorder) Get ¶
func (mr *MockCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockCacheMockRecorder) Set ¶
func (mr *MockCacheMockRecorder) Set(arg0 interface{}) *gomock.Call
Set indicates an expected call of Set
type MockEventExecutor ¶
type MockEventExecutor struct {
// contains filtered or unexported fields
}
MockEventExecutor is a mock of EventExecutor interface
func NewMockEventExecutor ¶
func NewMockEventExecutor(ctrl *gomock.Controller) *MockEventExecutor
NewMockEventExecutor creates a new mock instance
func (*MockEventExecutor) EXPECT ¶
func (m *MockEventExecutor) EXPECT() *MockEventExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockEventExecutor) Execute ¶
func (m *MockEventExecutor) Execute(arg0 *types.Event) (bool, types.AlarmChangeType, error)
Execute mocks base method
type MockEventExecutorContainer ¶
type MockEventExecutorContainer struct {
// contains filtered or unexported fields
}
MockEventExecutorContainer is a mock of EventExecutorContainer interface
func NewMockEventExecutorContainer ¶
func NewMockEventExecutorContainer(ctrl *gomock.Controller) *MockEventExecutorContainer
NewMockEventExecutorContainer creates a new mock instance
func (*MockEventExecutorContainer) EXPECT ¶
func (m *MockEventExecutorContainer) EXPECT() *MockEventExecutorContainerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockEventExecutorContainer) Get ¶
func (m *MockEventExecutorContainer) Get(arg0 string) (alarm.EventExecutor, bool)
Get mocks base method
func (*MockEventExecutorContainer) Has ¶
func (m *MockEventExecutorContainer) Has(arg0 string) bool
Has mocks base method
func (*MockEventExecutorContainer) Set ¶
func (m *MockEventExecutorContainer) Set(arg0 string, arg1 alarm.EventExecutor)
Set mocks base method
type MockEventExecutorContainerMockRecorder ¶
type MockEventExecutorContainerMockRecorder struct {
// contains filtered or unexported fields
}
MockEventExecutorContainerMockRecorder is the mock recorder for MockEventExecutorContainer
func (*MockEventExecutorContainerMockRecorder) Get ¶
func (mr *MockEventExecutorContainerMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockEventExecutorContainerMockRecorder) Has ¶
func (mr *MockEventExecutorContainerMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has
func (*MockEventExecutorContainerMockRecorder) Set ¶
func (mr *MockEventExecutorContainerMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set
type MockEventExecutorMockRecorder ¶
type MockEventExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockEventExecutorMockRecorder is the mock recorder for MockEventExecutor
func (*MockEventExecutorMockRecorder) Execute ¶
func (mr *MockEventExecutorMockRecorder) Execute(arg0 interface{}) *gomock.Call
Execute indicates an expected call of Execute
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) FlushCache ¶
func (m *MockService) FlushCache() error
FlushCache mocks base method
func (*MockService) GetAlarmsByID ¶
func (m *MockService) GetAlarmsByID(arg0 string) ([]types.Alarm, error)
GetAlarmsByID mocks base method
func (*MockService) GetAlarmsWithCancelMark ¶
func (m *MockService) GetAlarmsWithCancelMark() ([]types.Alarm, error)
GetAlarmsWithCancelMark mocks base method
func (*MockService) GetAlarmsWithDoneMark ¶
func (m *MockService) GetAlarmsWithDoneMark() ([]types.Alarm, error)
GetAlarmsWithDoneMark mocks base method
func (*MockService) GetAlarmsWithFlappingStatus ¶
func (m *MockService) GetAlarmsWithFlappingStatus() ([]types.Alarm, error)
GetAlarmsWithFlappingStatus mocks base method
func (*MockService) GetAlarmsWithSnoozeMark ¶
func (m *MockService) GetAlarmsWithSnoozeMark() ([]types.Alarm, error)
GetAlarmsWithSnoozeMark mocks base method
func (*MockService) GetLastAlarm ¶
func (m *MockService) GetLastAlarm(arg0, arg1, arg2 string) (types.Alarm, error)
GetLastAlarm mocks base method
func (*MockService) GetOneByEntityID ¶
func (m *MockService) GetOneByEntityID(arg0, arg1, arg2 string) (types.Alarm, error)
GetOneByEntityID mocks base method
func (*MockService) GetOpenedAlarmsByIDs ¶
func (m *MockService) GetOpenedAlarmsByIDs(arg0 []string, arg1 *[]types.Alarm) error
GetOpenedAlarmsByIDs mocks base method
func (*MockService) GetUnresolved ¶
func (m *MockService) GetUnresolved() ([]types.Alarm, error)
GetUnresolved mocks base method
func (*MockService) Insert ¶
func (m *MockService) Insert(arg0 types.Alarm) error
Insert mocks base method
func (*MockService) MassUpdate ¶
func (m *MockService) MassUpdate(arg0 []types.Alarm) error
MassUpdate mocks base method
func (*MockService) ProcessAckResources ¶
ProcessAckResources mocks base method
func (*MockService) ProcessAlarmEvent ¶
func (m *MockService) ProcessAlarmEvent(arg0 context.Context, arg1 *types.Event) (types.AlarmChange, error)
ProcessAlarmEvent mocks base method
func (*MockService) ProcessCheckOrWatcher ¶
func (m *MockService) ProcessCheckOrWatcher(arg0 *types.Event) (types.AlarmChangeType, error)
ProcessCheckOrWatcher mocks base method
func (*MockService) ProcessMetaAlarmCreateEvent ¶
func (m *MockService) ProcessMetaAlarmCreateEvent(arg0 *types.Event) (types.AlarmChangeType, error)
ProcessMetaAlarmCreateEvent mocks base method
func (*MockService) Remove ¶
func (m *MockService) Remove(arg0 types.Alarm) error
Remove mocks base method
func (*MockService) ResolveAlarms ¶
func (m *MockService) ResolveAlarms(arg0 context.Context, arg1 time.Duration) ([]types.Alarm, error)
ResolveAlarms mocks base method
func (*MockService) ResolveCancels ¶
func (m *MockService) ResolveCancels(arg0 context.Context, arg1 time.Duration) ([]types.Alarm, error)
ResolveCancels mocks base method
func (*MockService) ResolveDone ¶
ResolveDone mocks base method
func (*MockService) ResolveSnoozes ¶
ResolveSnoozes mocks base method
func (*MockService) SetTicketWithAckResources ¶
func (m *MockService) SetTicketWithAckResources(arg0 string, arg1 types.Event, arg2 string, arg3 map[string]string) error
SetTicketWithAckResources mocks base method
func (*MockService) Update ¶
func (m *MockService) Update(arg0 types.Alarm) error
Update mocks base method
func (*MockService) UpdateFlappingAlarms ¶
UpdateFlappingAlarms mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) FlushCache ¶
func (mr *MockServiceMockRecorder) FlushCache() *gomock.Call
FlushCache indicates an expected call of FlushCache
func (*MockServiceMockRecorder) Get ¶
func (mr *MockServiceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockServiceMockRecorder) GetAlarmsByID ¶
func (mr *MockServiceMockRecorder) GetAlarmsByID(arg0 interface{}) *gomock.Call
GetAlarmsByID indicates an expected call of GetAlarmsByID
func (*MockServiceMockRecorder) GetAlarmsWithCancelMark ¶
func (mr *MockServiceMockRecorder) GetAlarmsWithCancelMark() *gomock.Call
GetAlarmsWithCancelMark indicates an expected call of GetAlarmsWithCancelMark
func (*MockServiceMockRecorder) GetAlarmsWithDoneMark ¶
func (mr *MockServiceMockRecorder) GetAlarmsWithDoneMark() *gomock.Call
GetAlarmsWithDoneMark indicates an expected call of GetAlarmsWithDoneMark
func (*MockServiceMockRecorder) GetAlarmsWithFlappingStatus ¶
func (mr *MockServiceMockRecorder) GetAlarmsWithFlappingStatus() *gomock.Call
GetAlarmsWithFlappingStatus indicates an expected call of GetAlarmsWithFlappingStatus
func (*MockServiceMockRecorder) GetAlarmsWithSnoozeMark ¶
func (mr *MockServiceMockRecorder) GetAlarmsWithSnoozeMark() *gomock.Call
GetAlarmsWithSnoozeMark indicates an expected call of GetAlarmsWithSnoozeMark
func (*MockServiceMockRecorder) GetLastAlarm ¶
func (mr *MockServiceMockRecorder) GetLastAlarm(arg0, arg1, arg2 interface{}) *gomock.Call
GetLastAlarm indicates an expected call of GetLastAlarm
func (*MockServiceMockRecorder) GetOneByEntityID ¶
func (mr *MockServiceMockRecorder) GetOneByEntityID(arg0, arg1, arg2 interface{}) *gomock.Call
GetOneByEntityID indicates an expected call of GetOneByEntityID
func (*MockServiceMockRecorder) GetOpenedAlarmsByIDs ¶
func (mr *MockServiceMockRecorder) GetOpenedAlarmsByIDs(arg0, arg1 interface{}) *gomock.Call
GetOpenedAlarmsByIDs indicates an expected call of GetOpenedAlarmsByIDs
func (*MockServiceMockRecorder) GetUnresolved ¶
func (mr *MockServiceMockRecorder) GetUnresolved() *gomock.Call
GetUnresolved indicates an expected call of GetUnresolved
func (*MockServiceMockRecorder) Insert ¶
func (mr *MockServiceMockRecorder) Insert(arg0 interface{}) *gomock.Call
Insert indicates an expected call of Insert
func (*MockServiceMockRecorder) MassUpdate ¶
func (mr *MockServiceMockRecorder) MassUpdate(arg0 interface{}) *gomock.Call
MassUpdate indicates an expected call of MassUpdate
func (*MockServiceMockRecorder) ProcessAckResources ¶
func (mr *MockServiceMockRecorder) ProcessAckResources(arg0, arg1 interface{}) *gomock.Call
ProcessAckResources indicates an expected call of ProcessAckResources
func (*MockServiceMockRecorder) ProcessAlarmEvent ¶
func (mr *MockServiceMockRecorder) ProcessAlarmEvent(arg0, arg1 interface{}) *gomock.Call
ProcessAlarmEvent indicates an expected call of ProcessAlarmEvent
func (*MockServiceMockRecorder) ProcessCheckOrWatcher ¶
func (mr *MockServiceMockRecorder) ProcessCheckOrWatcher(arg0 interface{}) *gomock.Call
ProcessCheckOrWatcher indicates an expected call of ProcessCheckOrWatcher
func (*MockServiceMockRecorder) ProcessMetaAlarmCreateEvent ¶
func (mr *MockServiceMockRecorder) ProcessMetaAlarmCreateEvent(arg0 interface{}) *gomock.Call
ProcessMetaAlarmCreateEvent indicates an expected call of ProcessMetaAlarmCreateEvent
func (*MockServiceMockRecorder) Remove ¶
func (mr *MockServiceMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockServiceMockRecorder) RemoveAll ¶
func (mr *MockServiceMockRecorder) RemoveAll() *gomock.Call
RemoveAll indicates an expected call of RemoveAll
func (*MockServiceMockRecorder) ResolveAlarms ¶
func (mr *MockServiceMockRecorder) ResolveAlarms(arg0, arg1 interface{}) *gomock.Call
ResolveAlarms indicates an expected call of ResolveAlarms
func (*MockServiceMockRecorder) ResolveCancels ¶
func (mr *MockServiceMockRecorder) ResolveCancels(arg0, arg1 interface{}) *gomock.Call
ResolveCancels indicates an expected call of ResolveCancels
func (*MockServiceMockRecorder) ResolveDone ¶
func (mr *MockServiceMockRecorder) ResolveDone(arg0 interface{}) *gomock.Call
ResolveDone indicates an expected call of ResolveDone
func (*MockServiceMockRecorder) ResolveSnoozes ¶
func (mr *MockServiceMockRecorder) ResolveSnoozes(arg0 interface{}) *gomock.Call
ResolveSnoozes indicates an expected call of ResolveSnoozes
func (*MockServiceMockRecorder) SetTicketWithAckResources ¶
func (mr *MockServiceMockRecorder) SetTicketWithAckResources(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetTicketWithAckResources indicates an expected call of SetTicketWithAckResources
func (*MockServiceMockRecorder) Update ¶
func (mr *MockServiceMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockServiceMockRecorder) UpdateFlappingAlarms ¶
func (mr *MockServiceMockRecorder) UpdateFlappingAlarms(arg0 interface{}) *gomock.Call
UpdateFlappingAlarms indicates an expected call of UpdateFlappingAlarms