Class SearchTemplateInput
- 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.AbstractSearchInput
-
- com.floragunn.signals.watch.checks.SearchTemplateInput
-
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class SearchTemplateInput extends AbstractSearchInput
-
-
Field Summary
-
Fields inherited from class com.floragunn.signals.watch.checks.AbstractSearchInput
indices, indicesOptions, searchType, templateScriptFactory, timeout
-
Fields inherited from class com.floragunn.signals.watch.checks.AbstractInput
target
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.elasticsearch.script.ScriptcreateTemplateScript()protected Map<String,Object>getTemplateScriptParamsAsMap(WatchExecutionContext ctx)org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)-
Methods inherited from class com.floragunn.signals.watch.checks.AbstractSearchInput
compileScripts, createSearchRequest, execute, executeSearchRequest, executeTemplateScript, getIndices, getIndicesAsArray, getTimeout, parseIndicesOptions, setTimeout
-
Methods inherited from class com.floragunn.signals.watch.checks.AbstractInput
setResult
-
Methods inherited from class com.floragunn.signals.watch.checks.Check
create, getIndexMapping, getIndexMappingUpdate, getName, toString
-
Methods inherited from class com.floragunn.signals.watch.common.WatchElement
getChildByNameAndType, getChildByNameAndType, getChildren, render, render
-
-
-
-
Method Detail
-
createTemplateScript
protected org.elasticsearch.script.Script createTemplateScript()
- Specified by:
createTemplateScriptin classAbstractSearchInput
-
getTemplateScriptParamsAsMap
protected Map<String,Object> getTemplateScriptParamsAsMap(WatchExecutionContext ctx)
- Overrides:
getTemplateScriptParamsAsMapin classCheck
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
-