Package org.graylog2.alarmcallbacks
Class HTTPAlarmCallback
java.lang.Object
org.graylog2.alarmcallbacks.HTTPAlarmCallback
- All Implemented Interfaces:
AlarmCallback
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPAlarmCallback(okhttp3.OkHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, UrlWhitelistService whitelistService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(Stream stream, AlertCondition.CheckResult result) voidgetName()voidinitialize(Configuration config)
-
Constructor Details
-
HTTPAlarmCallback
@Inject public HTTPAlarmCallback(okhttp3.OkHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, UrlWhitelistService whitelistService)
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceAlarmCallback- Throws:
AlarmCallbackConfigurationException
-
call
- Specified by:
callin interfaceAlarmCallback- Throws:
AlarmCallbackException
-
getRequestedConfiguration
- Specified by:
getRequestedConfigurationin interfaceAlarmCallback
-
getName
- Specified by:
getNamein interfaceAlarmCallback
-
getAttributes
- Specified by:
getAttributesin interfaceAlarmCallback
-
checkConfiguration
- Specified by:
checkConfigurationin interfaceAlarmCallback- Throws:
ConfigurationException
-