RunCanaryContext runCanaryContext = RunCanaryContext.builder() .application(canaryAnalysisConfig.getApplication()) .user(canaryAnalysisConfig.getUser())
.convertValue(stage.getContext(), RunCanaryContext.class); String metricsAccount = context.getMetricsAccountName(); String storageAccount = context.getStorageAccountName(); request.setCanaryConfig(context.getCanaryConfig()); .setScopes(context.getScopes()) .setThresholds(context.getScoreThresholds()) .setSiteLocal(context.getSiteLocal()); Optional.ofNullable(context.getApplication()).orElse(AD_HOC), stage.getExecution().getId(), Optional.ofNullable(context.getCanaryConfigId()).orElse(AD_HOC), request.getCanaryConfig(), null, CanaryScopePair firstScopePair = context.getScopes().entrySet().stream().findFirst() .orElseThrow(() -> new IllegalStateException("There should be at least 1 scope")).getValue();
.convertValue(stage.getContext(), RunCanaryContext.class); String metricsAccount = context.getMetricsAccountName(); String storageAccount = context.getStorageAccountName(); request.setCanaryConfig(context.getCanaryConfig()); .setScopes(context.getScopes()) .setThresholds(context.getScoreThresholds()) .setSiteLocal(context.getSiteLocal()); Optional.ofNullable(context.getApplication()).orElse(AD_HOC), stage.getExecution().getId(), Optional.ofNullable(context.getCanaryConfigId()).orElse(AD_HOC), request.getCanaryConfig(), null, CanaryScopePair firstScopePair = context.getScopes().entrySet().stream().findFirst() .orElseThrow(() -> new IllegalStateException("There should be at least 1 scope")).getValue();
RunCanaryContext runCanaryContext = RunCanaryContext.builder() .application(canaryAnalysisConfig.getApplication()) .user(canaryAnalysisConfig.getUser())