summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorLeandro Alves <leandroalves@verizonmedia.com>2021-01-11 11:11:20 +0100
committerLeandro Alves <leandroalves@verizonmedia.com>2021-01-11 11:11:20 +0100
commitdb3f6f1fae59128b2cab987e7604abeb2ee0daaa (patch)
tree148e9d23db62acb550be96ccee092b76ee360cba /controller-server
parentdd0bde5039b4871a935cff05540d914d63e33b62 (diff)
add Millis to the fields name
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java4
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/tenant-with-metadata.json4
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"
}, {