core(deploy): add DeploymentConfigSnapshot record

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-22 21:26:30 +02:00
parent ff95187707
commit d580b6e90c

View File

@@ -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.
*
* <p>This is persisted as JSONB in {@code deployments.deployed_config_snapshot}.</p>
*/
public record DeploymentConfigSnapshot(
String jarVersionId,
ApplicationConfig agentConfig,
Map<String, Object> containerConfig
) {
}