Class AlertEventEntity

java.lang.Object
com.nmontytskyi.monitoring.server.entity.AlertEventEntity

@Entity public class AlertEventEntity extends Object
JPA entity representing a single occurrence of a fired alert.

Created by AlertEvaluationService whenever a metric crosses an AlertRuleEntity's threshold and the rule's cooldown period has elapsed. Each event is persisted and visible in the event log UI (FR-4).

Maps to the alert_events table. A composite index on (service_id, fired_at DESC) supports efficient queries in the paginated event log.

  • Constructor Details

    • AlertEventEntity

      public AlertEventEntity()