Class SeverityMapping.EvaluationResult
- java.lang.Object
-
- com.floragunn.signals.watch.severity.SeverityMapping.EvaluationResult
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
- Enclosing class:
- SeverityMapping
public static class SeverityMapping.EvaluationResult extends Object implements org.elasticsearch.common.xcontent.ToXContentObject
-
-
Constructor Summary
Constructors Constructor Description EvaluationResult(SeverityLevel level, SeverityMapping.Element mappingElement, Number actualValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SeverityMapping.EvaluationResultcreate(com.fasterxml.jackson.databind.JsonNode jsonNode)StringgetId()SeverityLevelgetLevel()SeverityMapping.ElementgetMappingElement()StringgetName()NumbergetThreshold()NumbergetValue()Map<String,Object>toMap()StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
-
-
Constructor Detail
-
EvaluationResult
public EvaluationResult(SeverityLevel level, SeverityMapping.Element mappingElement, Number actualValue)
-
-
Method Detail
-
getLevel
public SeverityLevel getLevel()
-
getMappingElement
public SeverityMapping.Element getMappingElement()
-
getValue
public Number getValue()
-
getThreshold
public Number getThreshold()
-
getName
public String getName()
-
getId
public String getId()
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
create
public static SeverityMapping.EvaluationResult create(com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.floragunn.searchsupport.jobs.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.jobs.config.validation.ConfigValidationException
-
-