accountCredentialsRepository); return synchronousQueryProcessor.executeQueryAndProduceTaskResult(resolvedMetricsAccountName, resolvedStorageAccountName, canaryConfig,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
@Nonnull @Override public TaskResult execute(@Nonnull Stage stage) { Map<String, Object> context = stage.getContext(); String metricsAccountName = (String)context.get("metricsAccountName"); String storageAccountName = (String)context.get("storageAccountName"); Map<String, Object> canaryConfigMap = (Map<String, Object>)context.get("canaryConfig"); CanaryConfig canaryConfig = kayentaObjectMapper.convertValue(canaryConfigMap, CanaryConfig.class); int metricIndex = (Integer)stage.getContext().get("metricIndex"); CanaryScope canaryScope; try { canaryScope = kayentaObjectMapper.readValue((String)stage.getContext().get("canaryScope"), PrometheusCanaryScope.class); } catch (IOException e) { log.warn("Unable to parse JSON scope", e); throw new RuntimeException(e); } String resolvedMetricsAccountName = CredentialsHelper.resolveAccountByNameOrType(metricsAccountName, AccountCredentials.Type.METRICS_STORE, accountCredentialsRepository); String resolvedStorageAccountName = CredentialsHelper.resolveAccountByNameOrType(storageAccountName, AccountCredentials.Type.OBJECT_STORE, accountCredentialsRepository); return synchronousQueryProcessor.executeQueryAndProduceTaskResult(resolvedMetricsAccountName, resolvedStorageAccountName, canaryConfig, metricIndex, canaryScope); } }
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
@Nonnull @Override public TaskResult execute(@Nonnull Stage stage) { Map<String, Object> context = stage.getContext(); String metricsAccountName = (String)context.get("metricsAccountName"); String storageAccountName = (String)context.get("storageAccountName"); Map<String, Object> canaryConfigMap = (Map<String, Object>)context.get("canaryConfig"); CanaryConfig canaryConfig = kayentaObjectMapper.convertValue(canaryConfigMap, CanaryConfig.class); int metricIndex = (Integer)stage.getContext().get("metricIndex"); StackdriverCanaryScope stackdriverCanaryScope; try { stackdriverCanaryScope = kayentaObjectMapper.readValue((String)stage.getContext().get("canaryScope"), StackdriverCanaryScope.class); } catch (IOException e) { log.warn("Unable to parse JSON scope", e); throw new RuntimeException(e); } String resolvedMetricsAccountName = CredentialsHelper.resolveAccountByNameOrType(metricsAccountName, AccountCredentials.Type.METRICS_STORE, accountCredentialsRepository); String resolvedStorageAccountName = CredentialsHelper.resolveAccountByNameOrType(storageAccountName, AccountCredentials.Type.OBJECT_STORE, accountCredentialsRepository); return synchronousQueryProcessor.executeQueryAndProduceTaskResult(resolvedMetricsAccountName, resolvedStorageAccountName, canaryConfig, metricIndex, stackdriverCanaryScope); } }
accountCredentialsRepository); return synchronousQueryProcessor.executeQueryAndProduceTaskResult(resolvedMetricsAccountName, resolvedStorageAccountName, canaryConfig,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,
@Nonnull @Override public TaskResult execute(@Nonnull Stage stage) { Map<String, Object> context = stage.getContext(); String metricsAccountName = (String)context.get("metricsAccountName"); String storageAccountName = (String)context.get("storageAccountName"); Map<String, Object> canaryConfigMap = (Map<String, Object>)context.get("canaryConfig"); CanaryConfig canaryConfig = kayentaObjectMapper.convertValue(canaryConfigMap, CanaryConfig.class); int metricIndex = (Integer)stage.getContext().get("metricIndex"); StackdriverCanaryScope stackdriverCanaryScope; try { stackdriverCanaryScope = kayentaObjectMapper.readValue((String)stage.getContext().get("canaryScope"), StackdriverCanaryScope.class); } catch (IOException e) { log.warn("Unable to parse JSON scope", e); throw new RuntimeException(e); } String resolvedMetricsAccountName = CredentialsHelper.resolveAccountByNameOrType(metricsAccountName, AccountCredentials.Type.METRICS_STORE, accountCredentialsRepository); String resolvedStorageAccountName = CredentialsHelper.resolveAccountByNameOrType(storageAccountName, AccountCredentials.Type.OBJECT_STORE, accountCredentialsRepository); return synchronousQueryProcessor.executeQueryAndProduceTaskResult(resolvedMetricsAccountName, resolvedStorageAccountName, canaryConfig, metricIndex, stackdriverCanaryScope); } }
@Nonnull @Override public TaskResult execute(@Nonnull Stage stage) { Map<String, Object> context = stage.getContext(); String metricsAccountName = (String)context.get("metricsAccountName"); String storageAccountName = (String)context.get("storageAccountName"); Map<String, Object> canaryConfigMap = (Map<String, Object>)context.get("canaryConfig"); CanaryConfig canaryConfig = kayentaObjectMapper.convertValue(canaryConfigMap, CanaryConfig.class); int metricIndex = (Integer)stage.getContext().get("metricIndex"); CanaryScope canaryScope; try { canaryScope = kayentaObjectMapper.readValue((String)stage.getContext().get("canaryScope"), PrometheusCanaryScope.class); } catch (IOException e) { log.warn("Unable to parse JSON scope", e); throw new RuntimeException(e); } String resolvedMetricsAccountName = CredentialsHelper.resolveAccountByNameOrType(metricsAccountName, AccountCredentials.Type.METRICS_STORE, accountCredentialsRepository); String resolvedStorageAccountName = CredentialsHelper.resolveAccountByNameOrType(storageAccountName, AccountCredentials.Type.OBJECT_STORE, accountCredentialsRepository); return synchronousQueryProcessor.executeQueryAndProduceTaskResult(resolvedMetricsAccountName, resolvedStorageAccountName, canaryConfig, metricIndex, canaryScope); } }
@Nonnull @Override public TaskResult execute(@Nonnull Stage stage) { Map<String, Object> context = stage.getContext(); String metricsAccountName = (String) context.get("metricsAccountName"); String storageAccountName = (String) context.get("storageAccountName"); Map<String, Object> canaryConfigMap = (Map<String, Object>) context.get("canaryConfig"); CanaryConfig canaryConfig = kayentaObjectMapper.convertValue(canaryConfigMap, CanaryConfig.class); int metricIndex = (Integer) stage.getContext().get("metricIndex"); CanaryScope canaryScope; try { canaryScope = kayentaObjectMapper.readValue((String) stage.getContext().get("canaryScope"), WavefrontCanaryScope.class); } catch (IOException e) { log.warn("Unable to parse JSON scope", e); throw new RuntimeException(e); } String resolvedMetricsAccountName = CredentialsHelper.resolveAccountByNameOrType(metricsAccountName, AccountCredentials.Type.METRICS_STORE, accountCredentialsRepository); String resolvedStorageAccountName = CredentialsHelper.resolveAccountByNameOrType(storageAccountName, AccountCredentials.Type.OBJECT_STORE, accountCredentialsRepository); return synchronousQueryProcessor.executeQueryAndProduceTaskResult(resolvedMetricsAccountName, resolvedStorageAccountName, canaryConfig, metricIndex, canaryScope); } }
); return synchronousQueryProcessor.executeQueryAndProduceTaskResult( resolvedMetricsAccountName, resolvedStorageAccountName,