diff options
author | Leandro Alves <leandroalves@verizonmedia.com> | 2021-01-11 11:11:20 +0100 |
---|---|---|
committer | Leandro Alves <leandroalves@verizonmedia.com> | 2021-01-11 11:11:20 +0100 |
commit | db3f6f1fae59128b2cab987e7604abeb2ee0daaa (patch) | |
tree | 148e9d23db62acb550be96ccee092b76ee360cba /controller-server | |
parent | dd0bde5039b4871a935cff05540d914d63e33b62 (diff) |
add Millis to the fields name
Diffstat (limited to 'controller-server')
2 files changed, 4 insertions, 4 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java index 307ea3080f4..fab3705ec66 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java @@ -1985,8 +1985,8 @@ public class ApplicationApiHandler extends LoggingRequestHandler { Optional<Instant> lastSubmission = applications.stream() .flatMap(app -> app.latestVersion().flatMap(ApplicationVersion::buildTime).stream()) .max(Comparator.naturalOrder()); - lastDev.ifPresent(instant -> object.setLong("lastDeploymentToDev", instant.toEpochMilli())); - lastSubmission.ifPresent(instant -> object.setLong("lastSubmissionToProd", instant.toEpochMilli())); + lastDev.ifPresent(instant -> object.setLong("lastDeploymentToDevMillis", instant.toEpochMilli())); + lastSubmission.ifPresent(instant -> object.setLong("lastSubmissionToProdMillis", instant.toEpochMilli())); } /** Returns a copy of the given URI with the host and port from the given URI, the path set to the given path and the query set to given query*/ diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/tenant-with-metadata.json b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/tenant-with-metadata.json index 95933791a45..a30f3ddf992 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/tenant-with-metadata.json +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/tenant-with-metadata.json @@ -4,8 +4,8 @@ "type": "ATHENS", "athensDomain": "domain1000", "property": "Property1000", - "lastDeploymentToDev": 1578480421000, - "lastSubmissionToProd": 1000 + "lastDeploymentToDevMillis": 1578480421000, + "lastSubmissionToProdMillis": 1000 }, "url": "http://localhost:8080/application/v4/tenant/tenant" }, { |