use of io.hops.hopsworks.alerting.exceptions.AlertManagerServerException in project hopsworks by logicalclocks.
the class AlertManager method reload.
public Response reload() throws AlertManagerClientCreateException, AlertManagerResponseException, AlertManagerUnreachableException {
doClientSanityCheck();
try {
Response response = client.reload();
registerSuccess();
return response;
} catch (AlertManagerServerException e) {
registerServerError();
throw new AlertManagerUnreachableException("Alertmanager not reachable." + e.getMessage(), e);
}
}
use of io.hops.hopsworks.alerting.exceptions.AlertManagerServerException in project hopsworks by logicalclocks.
the class AlertManager method getReceivers.
public List<ReceiverName> getReceivers() throws AlertManagerResponseException, AlertManagerClientCreateException, AlertManagerUnreachableException {
doClientSanityCheck();
try {
List<ReceiverName> response = client.getReceivers();
registerSuccess();
return response;
} catch (AlertManagerServerException e) {
registerServerError();
throw new AlertManagerUnreachableException("Alertmanager not reachable." + e.getMessage(), e);
}
}
use of io.hops.hopsworks.alerting.exceptions.AlertManagerServerException in project hopsworks by logicalclocks.
the class AlertManager method ready.
public Response ready() throws AlertManagerClientCreateException, AlertManagerResponseException, AlertManagerUnreachableException {
doClientSanityCheck();
try {
Response response = client.ready();
registerSuccess();
return response;
} catch (AlertManagerServerException e) {
registerServerError();
throw new AlertManagerUnreachableException("Alertmanager not reachable." + e.getMessage(), e);
}
}
use of io.hops.hopsworks.alerting.exceptions.AlertManagerServerException in project hopsworks by logicalclocks.
the class AlertManager method deleteSilence.
public Response deleteSilence(String uuid) throws AlertManagerClientCreateException, AlertManagerResponseException, AlertManagerUnreachableException {
doClientSanityCheck();
try {
Response response = client.deleteSilence(uuid);
registerSuccess();
return response;
} catch (AlertManagerServerException e) {
registerServerError();
throw new AlertManagerUnreachableException("Alertmanager not reachable." + e.getMessage(), e);
}
}
use of io.hops.hopsworks.alerting.exceptions.AlertManagerServerException in project hopsworks by logicalclocks.
the class AlertManager method postAlerts.
public Response postAlerts(List<PostableAlert> postableAlerts) throws AlertManagerClientCreateException, AlertManagerResponseException, AlertManagerUnreachableException {
doClientSanityCheck();
try {
Response response = client.postAlerts(postableAlerts);
registerSuccess();
return response;
} catch (AlertManagerServerException e) {
registerServerError();
throw new AlertManagerUnreachableException("Alertmanager not reachable." + e.getMessage(), e);
}
}
Aggregations