Documentation ¶
Index ¶
- func ConcatOutputAndRuleName(output, ruleName string) string
- func NewAlarmStep(t string, params rpc.AxeParameters, inPbehaviorInterval bool) types.AlarmStep
- func NewPbhAlarmStep(t string, params rpc.AxeParameters, pbehaviorInfo types.PbehaviorInfo) types.AlarmStep
- type AutoInstructionMatcher
- type MetaAlarmPostProcessor
- type Processor
- func NewAckProcessor(client mongo.DbClient, configProvider config.AlarmConfigProvider, ...) Processor
- func NewAckRemoveProcessor(client mongo.DbClient, ...) Processor
- func NewActivateProcessor(client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, ...) Processor
- func NewAssocTicketProcessor(client mongo.DbClient, metaAlarmPostProcessor MetaAlarmPostProcessor, ...) Processor
- func NewAutoInstructionActivateProcessor(client mongo.DbClient) Processor
- func NewAutoWebhookCompleteProcessor(client mongo.DbClient, metaAlarmPostProcessor MetaAlarmPostProcessor, ...) Processor
- func NewAutoWebhookFailProcessor(client mongo.DbClient) Processor
- func NewAutoWebhookStartProcessor(client mongo.DbClient) Processor
- func NewCancelProcessor(client mongo.DbClient, metaAlarmPostProcessor MetaAlarmPostProcessor, ...) Processor
- func NewChangeStateProcessor(client mongo.DbClient, ...) Processor
- func NewCheckProcessor(client mongo.DbClient, alarmConfigProvider config.AlarmConfigProvider, ...) Processor
- func NewCombinedProcessor(container ProcessorContainer) Processor
- func NewCommentProcessor(client mongo.DbClient, metaAlarmPostProcessor MetaAlarmPostProcessor, ...) Processor
- func NewDeclareTicketWebhookProcessor(client mongo.DbClient, metricsSender metrics.Sender, ...) Processor
- func NewEntityToggledProcessor(dbClient mongo.DbClient, ...) Processor
- func NewEntityUpdatedProcessor(dbClient mongo.DbClient, ...) Processor
- func NewForwardProcessor() Processor
- func NewForwardWithAlarmProcessor(client mongo.DbClient) Processor
- func NewInstructionProcessor(client mongo.DbClient, metricsSender metrics.Sender, ...) Processor
- func NewJunitProcessor(client mongo.DbClient) Processor
- func NewMetaAlarmAttachProcessor(dbClient mongo.DbClient, ruleAdapter correlation.RulesAdapter, ...) Processor
- func NewMetaAlarmChildActivateProcessor(client mongo.DbClient) Processor
- func NewMetaAlarmChildDeactivateProcessor(client mongo.DbClient) Processor
- func NewMetaAlarmDetachProcessor(dbClient mongo.DbClient, ruleAdapter correlation.RulesAdapter, ...) Processor
- func NewMetaAlarmProcessor(autoInstructionMatcher AutoInstructionMatcher, metricsSender metrics.Sender, ...) Processor
- func NewNoEventsProcessor(client mongo.DbClient, alarmConfigProvider config.AlarmConfigProvider, ...) Processor
- func NewPbhEnterProcessor(client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, ...) Processor
- func NewPbhLeaveAndEnterProcessor(client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, ...) Processor
- func NewPbhLeaveProcessor(client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, ...) Processor
- func NewRecomputeEntityServiceProcessor(dbClient mongo.DbClient, ...) Processor
- func NewResolveCancelProcessor(dbClient mongo.DbClient, ...) Processor
- func NewResolveCloseProcessor(dbClient mongo.DbClient, ...) Processor
- func NewResolveDeletedProcessor(dbClient mongo.DbClient, ...) Processor
- func NewSnoozeProcessor(client mongo.DbClient, metaAlarmPostProcessor MetaAlarmPostProcessor, ...) Processor
- func NewTriggerProcessor(client mongo.DbClient) Processor
- func NewUncancelProcessor(dbClient mongo.DbClient, alarmStatusService alarmstatus.Service, ...) Processor
- func NewUnsnoozeProcessor(client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, ...) Processor
- func NewUpdateCountersProcessor(dbClient mongo.DbClient, ...) Processor
- func NewUpdateStatusProcessor(dbClient mongo.DbClient, alarmStatusService alarmstatus.Service, ...) Processor
- func NewWebhookCompleteProcessor(client mongo.DbClient, metaAlarmPostProcessor MetaAlarmPostProcessor, ...) Processor
- func NewWebhookFailProcessor(client mongo.DbClient) Processor
- func NewWebhookStartProcessor(client mongo.DbClient) Processor
- type ProcessorContainer
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlarmStep ¶
func NewPbhAlarmStep ¶
func NewPbhAlarmStep(t string, params rpc.AxeParameters, pbehaviorInfo types.PbehaviorInfo) types.AlarmStep
Types ¶
type AutoInstructionMatcher ¶
type AutoInstructionMatcher interface { Load(ctx context.Context) error Match(triggers []string, alarmWithEntity types.AlarmWithEntity) (bool, error) }
func NewNullAutoInstructionMatcher ¶
func NewNullAutoInstructionMatcher() AutoInstructionMatcher
type MetaAlarmPostProcessor ¶
type MetaAlarmPostProcessor interface { // Process handles related meta alarm parents and children after alarm change. Process(ctx context.Context, event rpc.AxeEvent, eventRes rpc.AxeResultEvent) error }
func NewMetaAlarmPostProcessor ¶
func NewMetaAlarmPostProcessor( dbClient mongo.DbClient, adapter libalarm.Adapter, ruleAdapter correlation.RulesAdapter, alarmStatusService alarmstatus.Service, metaAlarmStatesService correlation.MetaAlarmStateService, encoder encoding.Encoder, eventGenerator event.Generator, amqpPublisher libamqp.Publisher, metricsSender metrics.Sender, logger zerolog.Logger, ) MetaAlarmPostProcessor
type Processor ¶
func NewAckProcessor ¶
func NewAckProcessor( client mongo.DbClient, configProvider config.AlarmConfigProvider, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metricsSender metrics.Sender, logger zerolog.Logger, ) Processor
func NewAckRemoveProcessor ¶
func NewAckRemoveProcessor( client mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metricsSender metrics.Sender, logger zerolog.Logger, ) Processor
func NewActivateProcessor ¶
func NewAssocTicketProcessor ¶
func NewAutoInstructionActivateProcessor ¶
func NewAutoWebhookCompleteProcessor ¶
func NewAutoWebhookFailProcessor ¶
func NewAutoWebhookStartProcessor ¶
func NewCancelProcessor ¶
func NewChangeStateProcessor ¶
func NewChangeStateProcessor( client mongo.DbClient, userInterfaceConfigProvider config.UserInterfaceConfigProvider, alarmStatusService alarmstatus.Service, autoInstructionMatcher AutoInstructionMatcher, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewCheckProcessor ¶
func NewCheckProcessor( client mongo.DbClient, alarmConfigProvider config.AlarmConfigProvider, alarmStatusService alarmstatus.Service, pbhTypeResolver pbehavior.EntityTypeResolver, autoInstructionMatcher AutoInstructionMatcher, metaAlarmPostProcessor MetaAlarmPostProcessor, metricsSender metrics.Sender, eventStatisticsSender statistics.EventStatisticsSender, remediationRpcClient engine.RPCClient, externalTagUpdater alarmtag.ExternalUpdater, internalTagAlarmMatcher alarmtag.InternalTagAlarmMatcher, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewCombinedProcessor ¶
func NewCombinedProcessor(container ProcessorContainer) Processor
func NewCommentProcessor ¶
func NewDeclareTicketWebhookProcessor ¶
func NewEntityToggledProcessor ¶
func NewEntityToggledProcessor( dbClient mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metaAlarmStatesService correlation.MetaAlarmStateService, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewEntityUpdatedProcessor ¶
func NewEntityUpdatedProcessor( dbClient mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, ) Processor
func NewForwardWithAlarmProcessor ¶
func NewInstructionProcessor ¶
func NewMetaAlarmAttachProcessor ¶
func NewMetaAlarmAttachProcessor( dbClient mongo.DbClient, ruleAdapter correlation.RulesAdapter, adapter libalarm.Adapter, alarmStatusService alarmstatus.Service, templateExecutor template.Executor, metricsSender metrics.Sender, encoder encoding.Encoder, eventGenerator libevent.Generator, amqpPublisher libamqp.Publisher, logger zerolog.Logger, ) Processor
func NewMetaAlarmChildActivateProcessor ¶
func NewMetaAlarmChildDeactivateProcessor ¶
func NewMetaAlarmDetachProcessor ¶
func NewMetaAlarmDetachProcessor( dbClient mongo.DbClient, ruleAdapter correlation.RulesAdapter, adapter libalarm.Adapter, alarmStatusService alarmstatus.Service, templateExecutor template.Executor, ) Processor
func NewMetaAlarmProcessor ¶
func NewMetaAlarmProcessor( autoInstructionMatcher AutoInstructionMatcher, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, dbClient mongo.DbClient, metaAlarmStatesService correlation.MetaAlarmStateService, adapter libalarm.Adapter, ruleAdapter correlation.RulesAdapter, pbhTypeResolver pbehavior.EntityTypeResolver, alarmStatusService alarmstatus.Service, alarmConfigProvider config.AlarmConfigProvider, templateExecutor template.Executor, encoder encoding.Encoder, eventGenerator libevent.Generator, amqpPublisher libamqp.Publisher, logger zerolog.Logger, ) Processor
func NewNoEventsProcessor ¶
func NewNoEventsProcessor( client mongo.DbClient, alarmConfigProvider config.AlarmConfigProvider, alarmStatusService alarmstatus.Service, pbhTypeResolver pbehavior.EntityTypeResolver, autoInstructionMatcher AutoInstructionMatcher, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, internalTagAlarmMatcher alarmtag.InternalTagAlarmMatcher, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewPbhEnterProcessor ¶
func NewPbhEnterProcessor( client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewPbhLeaveAndEnterProcessor ¶
func NewPbhLeaveAndEnterProcessor( client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewPbhLeaveProcessor ¶
func NewPbhLeaveProcessor( client mongo.DbClient, autoInstructionMatcher AutoInstructionMatcher, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewRecomputeEntityServiceProcessor ¶
func NewRecomputeEntityServiceProcessor( dbClient mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metaAlarmStatesService correlation.MetaAlarmStateService, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewResolveCancelProcessor ¶
func NewResolveCancelProcessor( dbClient mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metaAlarmStatesService correlation.MetaAlarmStateService, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewResolveCloseProcessor ¶
func NewResolveCloseProcessor( dbClient mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metaAlarmStatesService correlation.MetaAlarmStateService, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewResolveDeletedProcessor ¶
func NewResolveDeletedProcessor( dbClient mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, componentCountersCalculator calculator.ComponentCountersCalculator, eventsSender entitycounters.EventsSender, metaAlarmPostProcessor MetaAlarmPostProcessor, metaAlarmStatesService correlation.MetaAlarmStateService, metricsSender metrics.Sender, remediationRpcClient engine.RPCClient, encoder encoding.Encoder, logger zerolog.Logger, ) Processor
func NewSnoozeProcessor ¶
func NewUncancelProcessor ¶
func NewUncancelProcessor( dbClient mongo.DbClient, alarmStatusService alarmstatus.Service, metaAlarmPostProcessor MetaAlarmPostProcessor, logger zerolog.Logger, ) Processor
func NewUnsnoozeProcessor ¶
func NewUpdateCountersProcessor ¶
func NewUpdateCountersProcessor( dbClient mongo.DbClient, entityServiceCountersCalculator calculator.EntityServiceCountersCalculator, eventsSender entitycounters.EventsSender, ) Processor
func NewUpdateStatusProcessor ¶
func NewUpdateStatusProcessor( dbClient mongo.DbClient, alarmStatusService alarmstatus.Service, metaAlarmPostProcessor MetaAlarmPostProcessor, logger zerolog.Logger, ) Processor
func NewWebhookCompleteProcessor ¶
Source Files ¶
- ack.go
- ack_remove.go
- activate.go
- assoc_ticket.go
- auto_instruction_activate.go
- auto_instructions_matcher.go
- autowebhook_complete.go
- autowebhook_fail.go
- autowebhook_start.go
- cancel.go
- change_state.go
- check.go
- combined.go
- comment.go
- container.go
- declare_ticket_webhook.go
- entity_toggled.go
- entity_updated.go
- forward.go
- forward_with_alarm.go
- instruction.go
- interface.go
- junit.go
- meta_alarm.go
- meta_alarm_attach.go
- meta_alarm_child_activate.go
- meta_alarm_child_deactivate.go
- meta_alarm_detach.go
- meta_alarm_post_processor.go
- mongo_queries.go
- no_events.go
- pbh_enter.go
- pbh_leave.go
- pbh_leave_and_enter.go
- recompute_entity_service.go
- resolve_cancel.go
- resolve_close.go
- resolve_deleted.go
- snooze.go
- trigger.go
- uncancel.go
- unsnooze.go
- update_counters.go
- update_helpers.go
- update_status.go
- webhook_complete.go
- webhook_fail.go
- webhook_start.go
Click to show internal directories.
Click to hide internal directories.