[Trunk | Orcid Service]: 1. pom.xml: a. Added timestamp in properties. b. In <build> added <resources> with filtering set to true. 2. GlobalVars.java: Added GlobalVars class for date of deploy & date of build. 3. UoaOrcidServiceApplication.java: a. Added PropertySource("classpath:authorization.properties") b. In @EnableConfigurationProperties added GlobalVars.class. 4. OrcidServiceCheckDeployController.java: Added exposing date of deploy and date of build. 5. orcidservice.properties: Added property orcidservice.globalVars.buildDate=@timestamp. 6. Metrics.java: Added class for saving/getting metrics for orcid KPIs. 7. MetricsDAO.java & MongoDBMetricsDAO.java: DAOs to handle new collections in DB (metrics). 8. MetricsService.java: Added methods to calculate and get metrics for orcid KPIs. 9. MetricsController.java: Added API call methods to calculate and return metrics for orcid KPIs (only /report/metrics is needed for Prometheus).
[Trunk | Orcid Service]:
1. pom.xml:
a. Added timestamp in properties.
b. In <build> added <resources> with filtering set to true.
2. GlobalVars.java: Added GlobalVars class for date of deploy & date of build.
3. UoaOrcidServiceApplication.java:
a. Added
PropertySource("classpath:authorization.properties")
.b. In @EnableConfigurationProperties added GlobalVars.class.
4. OrcidServiceCheckDeployController.java: Added exposing date of deploy and date of build.
5. orcidservice.properties: Added property orcidservice.globalVars.buildDate=@timestamp
6. Metrics.java: Added class for saving/getting metrics for orcid KPIs.
7. MetricsDAO.java & MongoDBMetricsDAO.java: DAOs to handle new collections in DB (metrics).
8. MetricsService.java: Added methods to calculate and get metrics for orcid KPIs.
9. MetricsController.java: Added API call methods to calculate and return metrics for orcid KPIs (only /report/metrics is needed for Prometheus).