Add history-based state changes and recompute pipeline

This commit is contained in:
2026-02-22 19:52:07 +03:00
parent c84102d2f1
commit ec54d3249e
22 changed files with 4973 additions and 32 deletions

View File

@@ -17,6 +17,11 @@ const (
Observation EntityType = "observation"
TimelineEvent EntityType = "timeline_event"
FailureEvent EntityType = "failure_event"
ComponentChangeEvent EntityType = "component_change_event"
ComponentSnapshot EntityType = "component_snapshot"
AssetChangeEvent EntityType = "asset_change_event"
AssetSnapshot EntityType = "asset_snapshot"
HistoryAdminAudit EntityType = "history_admin_audit"
)
// Prefix mapping for each entity type
@@ -28,6 +33,11 @@ var prefixMap = map[EntityType]string{
Observation: "OB",
TimelineEvent: "TE",
FailureEvent: "FE",
ComponentChangeEvent: "CE",
ComponentSnapshot: "CS",
AssetChangeEvent: "AE",
AssetSnapshot: "AS",
HistoryAdminAudit: "HA",
}
// Generator handles unique ID generation with prefixes