Search in sources :

Example 1 with PrometheusCanaryAccount

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;
}
Also used : PrometheusCanaryAccount(com.netflix.spinnaker.halyard.config.model.v1.canary.prometheus.PrometheusCanaryAccount)

Aggregations

PrometheusCanaryAccount (com.netflix.spinnaker.halyard.config.model.v1.canary.prometheus.PrometheusCanaryAccount)1