use of com.netflix.spinnaker.halyard.config.model.v1.canary.prometheus.PrometheusCanaryAccount in project halyard by spinnaker.
the class PrometheusAddCanaryAccountCommand method buildAccount.
@Override
protected AbstractCanaryAccount buildAccount(Canary canary, String accountName) {
PrometheusCanaryAccount account = (PrometheusCanaryAccount) new PrometheusCanaryAccount().setName(accountName);
account.setEndpoint(new PrometheusCanaryAccount.Endpoint().setBaseUrl(baseUrl));
return account;
}
Aggregations