Class AlertManagerImporter
java.lang.Object
de.iip_ecosphere.platform.monitoring.prometheus.AlertManagerImporter
A prometheus alert manager importer. This class assumes that
Transport is set up.- Author:
- Matjaž Cerkvenik (original author of
PrometheusSyncTaskfrom which we took over code as we cannot hook intoDAO)., Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classA sync task in the style ofPrometheusSyncTaskas we cannot hook into theDAOwith a platform mechanism. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static de.iip_ecosphere.platform.support.logging.Loggerprivate AlertManagerImporter.SyncTaskprivate Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstart()Starts the importer.voidstop()Stops the importer.private voidsynchronizeAlerts(List<si.matjazcerkvenik.alertmonitor.model.DEvent> alertList, boolean psync) Synchronizes the alerts with the platform.
-
Field Details
-
logger
private static de.iip_ecosphere.platform.support.logging.Logger logger -
timer
-
syncTask
-
-
Constructor Details
-
AlertManagerImporter
public AlertManagerImporter()
-
-
Method Details
-
start
public void start()Starts the importer. -
synchronizeAlerts
private void synchronizeAlerts(List<si.matjazcerkvenik.alertmonitor.model.DEvent> alertList, boolean psync) Synchronizes the alerts with the platform.- Parameters:
alertList- the alertspsync- comes from PSync (ignored)
-
stop
public void stop()Stops the importer.
-