Class HttpInput
- java.lang.Object
-
- com.floragunn.signals.watch.common.WatchElement
-
- com.floragunn.signals.watch.checks.Check
-
- com.floragunn.signals.watch.checks.AbstractInput
-
- com.floragunn.signals.watch.checks.HttpInput
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class HttpInput extends AbstractInput
-
-
Field Summary
-
Fields inherited from class com.floragunn.signals.watch.checks.AbstractInput
target
-
-
Constructor Summary
Constructors Constructor Description HttpInput(String name, String target, HttpRequestConfig request, HttpClientConfig httpClientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(WatchExecutionContext ctx)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)-
Methods inherited from class com.floragunn.signals.watch.checks.AbstractInput
setResult
-
Methods inherited from class com.floragunn.signals.watch.checks.Check
create, getIndexMapping, getName, getTemplateScriptParamsAsMap, toString
-
Methods inherited from class com.floragunn.signals.watch.common.WatchElement
getChildByNameAndType, getChildByNameAndType, getChildren, render, render
-
-
-
-
Constructor Detail
-
HttpInput
public HttpInput(String name, String target, HttpRequestConfig request, HttpClientConfig httpClientConfig)
-
-
Method Detail
-
execute
public boolean execute(WatchExecutionContext ctx) throws CheckExecutionException
- Specified by:
executein classCheck- Throws:
CheckExecutionException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
-