Search in sources :

Example 1 with EventAnalyzerService

use of org.apache.skywalking.oap.server.analyzer.event.EventAnalyzerService in project skywalking by apache.

the class EventHookCallback method doAlarm.

@Override
public void doAlarm(List<AlarmMessage> alarmMessage) {
    EventAnalyzerService analyzerService = manager.find(EventAnalyzerModule.NAME).provider().getService(EventAnalyzerService.class);
    alarmMessage.forEach(a -> {
        for (Event event : constructCurrentEvent(a)) {
            analyzerService.analyze(event);
        }
    });
}
Also used : EventAnalyzerService(org.apache.skywalking.oap.server.analyzer.event.EventAnalyzerService) Event(org.apache.skywalking.apm.network.event.v3.Event)

Example 2 with EventAnalyzerService

use of org.apache.skywalking.oap.server.analyzer.event.EventAnalyzerService in project incubator-skywalking by apache.

the class EventHookCallback method doAlarm.

@Override
public void doAlarm(List<AlarmMessage> alarmMessage) {
    EventAnalyzerService analyzerService = manager.find(EventAnalyzerModule.NAME).provider().getService(EventAnalyzerService.class);
    alarmMessage.forEach(a -> {
        for (Event event : constructCurrentEvent(a)) {
            analyzerService.analyze(event);
        }
    });
}
Also used : EventAnalyzerService(org.apache.skywalking.oap.server.analyzer.event.EventAnalyzerService) Event(org.apache.skywalking.apm.network.event.v3.Event)

Aggregations

Event (org.apache.skywalking.apm.network.event.v3.Event)2 EventAnalyzerService (org.apache.skywalking.oap.server.analyzer.event.EventAnalyzerService)2