Class AlertManagerImporter.SyncTask

java.lang.Object
java.util.TimerTask
de.iip_ecosphere.platform.monitoring.prometheus.AlertManagerImporter.SyncTask
All Implemented Interfaces:
Runnable
Enclosing class:
AlertManagerImporter

private class AlertManagerImporter.SyncTask extends TimerTask
A sync task in the style of PrometheusSyncTask as we cannot hook into the DAO with a platform mechanism.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private si.matjazcerkvenik.alertmonitor.model.prometheus.PrometheusApi
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    private si.matjazcerkvenik.alertmonitor.model.DEvent
    createDEvent(si.matjazcerkvenik.alertmonitor.model.prometheus.PAlert alert)
    Creates a DEvent from a PAlert.
    void
    run()
     

    Methods inherited from class java.util.TimerTask

    scheduledExecutionTime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • api

      private si.matjazcerkvenik.alertmonitor.model.prometheus.PrometheusApi api
  • Constructor Details

    • SyncTask

      private SyncTask()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • cancel

      public boolean cancel()
      Overrides:
      cancel in class TimerTask
    • createDEvent

      private si.matjazcerkvenik.alertmonitor.model.DEvent createDEvent(si.matjazcerkvenik.alertmonitor.model.prometheus.PAlert alert)
      Creates a DEvent from a PAlert.
      Parameters:
      alert - the alert
      Returns:
      the event