core(deploy): add DeploymentConfigSnapshot record
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user