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, context, tenantId, triggerId, triggerMode, type| Constructor and Description |
|---|
ExternalCondition() |
ExternalCondition(String triggerId,
Mode triggerMode,
int conditionSetSize,
int conditionSetIndex,
String dataId,
String alerterId,
String expression)
This constructor requires the tenantId be assigned prior to persistence.
|
ExternalCondition(String triggerId,
Mode triggerMode,
String dataId,
String alerterId,
String expression)
This constructor requires the tenantId be assigned prior to persistence.
|
ExternalCondition(String tenantId,
String triggerId,
Mode triggerMode,
int conditionSetSize,
int conditionSetIndex,
String dataId,
String alerterId,
String expression) |
ExternalCondition(String tenantId,
String triggerId,
Mode triggerMode,
String dataId,
String alerterId,
String expression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlerterId() |
String |
getDataId() |
String |
getExpression() |
String |
getLog(String value) |
int |
hashCode() |
boolean |
match(String value) |
void |
setAlerterId(String alerterId) |
void |
setDataId(String dataId) |
void |
setExpression(String expression) |
String |
toString() |
getConditionId, getConditionSetIndex, getConditionSetSize, getContext, getTenantId, getTriggerId, getTriggerMode, getType, setConditionSetIndex, setConditionSetSize, setContext, setTenantId, setTriggerId, setTriggerModepublic ExternalCondition()
public ExternalCondition(String triggerId, Mode triggerMode, String dataId, String alerterId, String expression)
public ExternalCondition(String tenantId, String triggerId, Mode triggerMode, String dataId, String alerterId, String expression)
public ExternalCondition(String triggerId, Mode triggerMode, int conditionSetSize, int conditionSetIndex, String dataId, String alerterId, String expression)
public String getAlerterId()
public void setAlerterId(String alerterId)
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–2016 Red Hat, Inc.. All rights reserved.