public class HTTPAlarmCallback extends Object implements AlarmCallback
| Constructor and Description |
|---|
HTTPAlarmCallback(okhttp3.OkHttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(Stream stream,
AlertCondition.CheckResult result) |
void |
checkConfiguration() |
Map<String,Object> |
getAttributes() |
String |
getName() |
ConfigurationRequest |
getRequestedConfiguration() |
void |
initialize(Configuration config) |
@Inject
public HTTPAlarmCallback(okhttp3.OkHttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void initialize(Configuration config) throws AlarmCallbackConfigurationException
initialize in interface AlarmCallbackAlarmCallbackConfigurationExceptionpublic void call(Stream stream, AlertCondition.CheckResult result) throws AlarmCallbackException
call in interface AlarmCallbackAlarmCallbackExceptionpublic ConfigurationRequest getRequestedConfiguration()
getRequestedConfiguration in interface AlarmCallbackpublic String getName()
getName in interface AlarmCallbackpublic Map<String,Object> getAttributes()
getAttributes in interface AlarmCallbackpublic void checkConfiguration()
throws ConfigurationException
checkConfiguration in interface AlarmCallbackConfigurationExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.