Class SeverityMapping.Element
- java.lang.Object
-
- com.floragunn.signals.watch.severity.SeverityMapping.Element
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
- Enclosing class:
- SeverityMapping
public static class SeverityMapping.Element extends Object implements org.elasticsearch.common.xcontent.ToXContent
-
-
Constructor Summary
Constructors Constructor Description Element(BigDecimal threshold, SeverityLevel level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)SeverityLevelgetLevel()BigDecimalgetThreshold()inthashCode()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
-
Element
public Element(BigDecimal threshold, SeverityLevel level)
-
-
Method Detail
-
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
-
getThreshold
public BigDecimal getThreshold()
-
getLevel
public SeverityLevel getLevel()
-
-