From 232e49f56d39a5e7dc8da9ab8e826050eab3b92e Mon Sep 17 00:00:00 2001 From: zywang Date: Thu, 14 Nov 2024 15:34:07 +0800 Subject: [PATCH] rename field --- .../kraken/operator/data/entity/InstanceHeartbeatEntity.java | 2 +- .../kraken/operator/gateway/service/HeartBeatService.java | 2 +- .../kraken/operator/sync/service/PushHeartbeatService.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kraken-java-sdk/kraken-java-sdk-data/src/main/java/com/consoleconnect/kraken/operator/data/entity/InstanceHeartbeatEntity.java b/kraken-java-sdk/kraken-java-sdk-data/src/main/java/com/consoleconnect/kraken/operator/data/entity/InstanceHeartbeatEntity.java index 4210c27e..d94ae636 100644 --- a/kraken-java-sdk/kraken-java-sdk-data/src/main/java/com/consoleconnect/kraken/operator/data/entity/InstanceHeartbeatEntity.java +++ b/kraken-java-sdk/kraken-java-sdk-data/src/main/java/com/consoleconnect/kraken/operator/data/entity/InstanceHeartbeatEntity.java @@ -27,5 +27,5 @@ public class InstanceHeartbeatEntity extends AbstractEntity { private String appVersion; @Column(name = "start_up_at", nullable = true, unique = false) - private ZonedDateTime startUpTAt; + private ZonedDateTime startUpAt; } diff --git a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/service/HeartBeatService.java b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/service/HeartBeatService.java index 2f23e7f7..d30c4e11 100644 --- a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/service/HeartBeatService.java +++ b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/service/HeartBeatService.java @@ -61,7 +61,7 @@ private InstanceHeartbeatEntity builInstanceHeartbeatEntity() { public void onPlatformBootUp(Object event) { log.info("Application started up, report start up event"); InstanceHeartbeatEntity instanceHeartbeatEntity = builInstanceHeartbeatEntity(); - instanceHeartbeatEntity.setStartUpTAt(ZonedDateTime.now()); + instanceHeartbeatEntity.setStartUpAt(ZonedDateTime.now()); heartbeatRepository.save(instanceHeartbeatEntity); } } diff --git a/kraken-java-sdk/kraken-java-sdk-sync/src/main/java/com/consoleconnect/kraken/operator/sync/service/PushHeartbeatService.java b/kraken-java-sdk/kraken-java-sdk-sync/src/main/java/com/consoleconnect/kraken/operator/sync/service/PushHeartbeatService.java index 2266de96..35a98525 100644 --- a/kraken-java-sdk/kraken-java-sdk-sync/src/main/java/com/consoleconnect/kraken/operator/sync/service/PushHeartbeatService.java +++ b/kraken-java-sdk/kraken-java-sdk-sync/src/main/java/com/consoleconnect/kraken/operator/sync/service/PushHeartbeatService.java @@ -50,7 +50,7 @@ public void runIt() { heartbeat.setRole(entity.getRole()); heartbeat.setAppVersion(entity.getAppVersion()); heartbeat.setUpdatedAt(entity.getUpdatedAt()); - heartbeat.setStartUpAt(entity.getStartUpTAt()); + heartbeat.setStartUpAt(entity.getStartUpAt()); return heartbeat; }) .toList();