class ElasticsearchAlerter extends Alerter {

	@Override
	public void alert(AlertArguments alertArguments) {
		String target = alertArguments.getSubscription().getTarget();
		if (StringUtils.isEmpty(target)) {
			target = "/stagemonitor/alerts";
		}
		httpClient.send(HttpRequestBuilder.<Integer>jsonRequest("POST", corePlugin.getElasticsearchUrl() + target, alertArguments.getIncident()).build());
	}

	public  ElasticsearchAlerter(ConfigurationRegistry configuration, HttpClient httpClient);

}