Skip to content

Commit

Permalink
updating comments
Browse files Browse the repository at this point in the history
Signed-off-by: Shekhar Saxena <[email protected]>
  • Loading branch information
shekhar316 committed Dec 2, 2024
1 parent 4ede6eb commit e42f7a9
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1772,11 +1772,9 @@ private ValidationOutputData addRecommendationsToDB(Map<String, KruizeObject> ma
private String getResults(Map<String, KruizeObject> mainKruizeExperimentMAP, KruizeObject kruizeObject,
String experimentName, Timestamp intervalStartTime, String dataSource) throws Exception, FetchMetricsError {
String errorMsg = "";
LOGGER.info("Inside Get Results");
mainKruizeExperimentMAP.put(experimentName, kruizeObject);
// get data from the DB in case of remote monitoring
if (kruizeObject.getExperiment_usecase_type().isRemote_monitoring()) {
LOGGER.info("Remote Monitoring.");
try {
boolean resultsAvailable = new ExperimentDBService().loadResultsFromDBByName(mainKruizeExperimentMAP, experimentName, intervalStartTime, interval_end_time);
if (!resultsAvailable) {
Expand All @@ -1790,7 +1788,6 @@ private String getResults(Map<String, KruizeObject> mainKruizeExperimentMAP, Kru
LOGGER.error(String.format(AnalyzerErrorConstants.APIErrors.UpdateRecommendationsAPI.FETCHING_RESULTS_FAILED, e.getMessage()));
}
} else if (kruizeObject.getExperiment_usecase_type().isLocal_monitoring()) {
LOGGER.info("Local Monitoring.");
// get data from the provided datasource in case of local monitoring
DataSourceInfo dataSourceInfo;
try {
Expand Down

0 comments on commit e42f7a9

Please sign in to comment.