Class StaticInput
- 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.StaticInput
-
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class StaticInput extends AbstractInput
-
-
Field Summary
-
Fields inherited from class com.floragunn.signals.watch.checks.AbstractInput
target
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(WatchExecutionContext ctx)Map<String,Object>getValue()static voidpatchForIndexMappingBugFix(com.fasterxml.jackson.databind.node.ObjectNode watchJson)Fixes bug in regard to index mapping.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)static voidunpatchForIndexMappingBugFix(Map<String,Object> watchJson)-
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
-
execute
public boolean execute(WatchExecutionContext ctx)
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
patchForIndexMappingBugFix
public static void patchForIndexMappingBugFix(com.fasterxml.jackson.databind.node.ObjectNode watchJson)
Fixes bug in regard to index mapping. Dynamic index mapping was originally enabled for the attribute "value", which made using different value structures impossible. As index mappings for specific fields cannot be changed retroactively, we need to write this to a new field name.
-
-