|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CriteriaMetaData
A meta data object describing a criteria. A criteria meta data object is a data bean that contains criteria used by a rule to determine whether an event is interesting. An event is interesting if all of the criteria property in this object consider the event interesting.
This representation of an a criteria is intended for use by a UI, and is suitable for transport over RPC and eventual persistent storage. A criteria meta data is stored within the criteria property of a rule meta data.
CriteriaMetaData is always indirectly specified through the //CriteriaShorthand
.
RuleMetaData.getCriteria()
,
//CriteriaShorthand
Method Summary | |
---|---|
java.lang.String[] |
getEventTypes()
The event types that are interesting to this criteria. |
HostID[] |
getHosts()
The hosts that are interesting to this criteria. |
HostSetID |
getHostSet()
The host set that is interesting to this criteria. |
HostStatus |
getHostStatusCode()
The status of hosts that are considered interesting to this criteria. |
java.lang.String |
getMessagePattern()
The message pattern that is interesting to this criteria. |
int[] |
getSeverities()
The event severities that are interesting to this criteria. |
TaskType |
getTaskEventTypeCode()
The type of task events that are considered interesting to this criteria. |
Method Detail |
---|
java.lang.String getMessagePattern()
HostID[] getHosts()
getHostSet()
HostSetID getHostSet()
getHosts()
HostStatus getHostStatusCode()
HostStatus.IGNORE_HOST_STATUS
, this
criteria is ignored. Otherwise, the event is considered
interesting if any of the affected hosts have a status that
is equal to this criteria. If the hosts or hostSet criteria
is also specified, then the event is interesting only if at least one
of the affected hosts with matching status is also in the hosts
or hostSet criteria.
The host status value may be IGNORE_HOST_STATUS, or one of the constants defined on the HostStatus object: SUCCESS, FAILURE, or INPROGRESS.
IGNORE_HOST_STATUS is returned by default.
HostStatus.IGNORE_HOST_STATUS
,
HostStatus.SUCCESS
,
HostStatus.FAILURE
,
HostStatus.INPROGRESS
TaskType getTaskEventTypeCode()
TaskType.IGNORE_TASK_TYPE
, this
criteria is ignored. IGNORE_TASK_TYPE is returned by default.
TaskType.IGNORE_TASK_TYPE
,
TaskType.PREFLIGHT_TASK_TYPE
,
TaskType.RUN_TASK_TYPE
int[] getSeverities()
java.lang.String[] getEventTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |