Class SearchInput
- 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.SearchInput
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class SearchInput extends AbstractSearchInput
-
-
Field Summary
-
Fields inherited from class com.floragunn.signals.watch.checks.AbstractSearchInput
indices, indicesOptions, templateScriptFactory, timeout
-
Fields inherited from class com.floragunn.signals.watch.checks.AbstractInput
target
-
-
Constructor Summary
Constructors Constructor Description SearchInput(String name, String target, String index, String body)SearchInput(String name, String target, List<String> indices, String body)SearchInput(String name, String target, List<String> indices, String body, org.elasticsearch.action.search.SearchType searchType, org.elasticsearch.action.support.IndicesOptions indicesOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.elasticsearch.script.ScriptcreateTemplateScript()StringgetBody()org.elasticsearch.action.search.SearchTypegetSearchType()voidsetSearchType(org.elasticsearch.action.search.SearchType searchType)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.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, getTemplateScriptParamsAsMap, 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
-
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
-
getSearchType
public org.elasticsearch.action.search.SearchType getSearchType()
-
setSearchType
public void setSearchType(org.elasticsearch.action.search.SearchType searchType)
-
getBody
public String getBody()
-
-