l8events is a shared event, alarm, and maintenance library for Layer 8 projects. It provides generic protobuf types, Go backend packages, and reusable l8ui components that any consumer project can import. Like l8notify, it depends only on google.golang.org/protobuf -- no l8orm, l8services, l8bus, or consumer project dependencies.
Immutable after creation. Captures a single occurrence with category, severity, source information, timestamps, and extensible attributes. Events can generate alarms via the generatedAlarmId field.
State machine lifecycle. Alarms progress through states: Active, Acknowledged, Cleared, Suppressed. Each state change is recorded in a stateHistory audit trail. Supports deduplication via dedupKey, occurrence counting, severity changes, and attached notes.
Time-bounded suppression windows. Supports recurrence patterns (daily, weekly, monthly) with scope filtering by entity IDs and types.
SeverityAlarmStateEventStateEventCategoryMaintenanceStatus16 typed event messages, one per EventCategory. Each shares common fields (eventId, propertyId, sourceId, sourceType) and adds domain-specific parsed fields. The propertyId references the exact attribute in a source model via l8reflect property paths.
Examples: AuditEvent (login, config change), NetworkEvent (BGP, OSPF, interface), KubernetesEvent (pod, node, deployment), GpuEvent (temperature, utilization, memory).
Validates alarm state transitions. Enforces the allowed transition graph and returns errors for invalid transitions.
Generic archive engine for moving resolved events and alarms to cold storage.
Evaluates whether a given entity at a given time falls within an active maintenance window. Handles recurrence expansion.
Converter engine with a Parser interface and dispatch system. Ships with 16 built-in parsers covering all event categories: Audit, System, Monitoring, Security, Integration, Performance, Syslog, Trap, Automation (ops), Network, Kubernetes, Compute, Storage, Power, GPU, Topology (infra).