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 AlarmCallback
AlarmCallbackConfigurationException
public void call(Stream stream, AlertCondition.CheckResult result) throws AlarmCallbackException
call
in interface AlarmCallback
AlarmCallbackException
public ConfigurationRequest getRequestedConfiguration()
getRequestedConfiguration
in interface AlarmCallback
public String getName()
getName
in interface AlarmCallback
public Map<String,Object> getAttributes()
getAttributes
in interface AlarmCallback
public void checkConfiguration() throws ConfigurationException
checkConfiguration
in interface AlarmCallback
ConfigurationException
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.