diff --git a/cameleer-server-core/src/main/java/com/cameleer/server/core/runtime/DeploymentConfigSnapshot.java b/cameleer-server-core/src/main/java/com/cameleer/server/core/runtime/DeploymentConfigSnapshot.java new file mode 100644 index 00000000..c7d0db47 --- /dev/null +++ b/cameleer-server-core/src/main/java/com/cameleer/server/core/runtime/DeploymentConfigSnapshot.java @@ -0,0 +1,19 @@ +package com.cameleer.server.core.runtime; + +import com.cameleer.common.model.ApplicationConfig; + +import java.util.Map; + +/** + * Snapshot of the config that was deployed, captured at the moment a deployment + * transitions to RUNNING. Used for "last known good" restore (checkpoints) and + * for dirty-state detection on the deployment page. + * + *
This is persisted as JSONB in {@code deployments.deployed_config_snapshot}.
+ */ +public record DeploymentConfigSnapshot( + String jarVersionId, + ApplicationConfig agentConfig, + Map