public class ExternalCondition extends Condition
ExternalCondition is used for condition evaluations performed outside of the Alerts engine.
The external engine will send StringData providing the data for which the external evaluation
has already evaluated to True. The Alerts engine assumes a true evaluation for the data being
sent in from the external engine. In other words, every ExternalConditionEvaluation will have
a true evaluation and therefore, for triggers with only a single external condition, and with default dampening,
an alert will be fired for each data submission.Condition.TypeconditionId, conditionSetIndex, conditionSetSize, tenantId, triggerId, triggerMode, type| Constructor and Description |
|---|
ExternalCondition() |
ExternalCondition(String triggerId,
Trigger.Mode triggerMode,
int conditionSetSize,
int conditionSetIndex,
String dataId,
String systemId,
String expression) |
ExternalCondition(String triggerId,
Trigger.Mode triggerMode,
String dataId,
String systemId,
String expression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDataId() |
String |
getExpression() |
String |
getLog(String value) |
String |
getSystemId() |
int |
hashCode() |
boolean |
match(String value) |
void |
setDataId(String dataId) |
void |
setExpression(String expression) |
void |
setSystemId(String systemId) |
String |
toString() |
getConditionId, getConditionSetIndex, getConditionSetSize, getTenantId, getTriggerId, getTriggerMode, getType, setConditionSetIndex, setConditionSetSize, setTenantId, setTriggerId, setTriggerModepublic ExternalCondition()
public ExternalCondition(String triggerId, Trigger.Mode triggerMode, String dataId, String systemId, String expression)
public ExternalCondition(String triggerId, Trigger.Mode triggerMode, int conditionSetSize, int conditionSetIndex, String dataId, String systemId, String expression)
public String getSystemId()
public void setSystemId(String systemId)
public String getDataId()
public void setDataId(String dataId)
public String getExpression()
public void setExpression(String expression)
public boolean match(String value)
value - the value, format is defined by the external engineCopyright © 2015 Red Hat, Inc.. All rights reserved.