The <Condition>
element of a rule contains a Boolean operator that specifies how the individual conditions relate to each other, and, for example, is similar to the <condition>
task in Ant.
Each operator can implement an operation against operands. For example, attribute hosted_on
has a value ending with .europe.example.com
(attribute hosted_on
and .europe.example.com
are operands) or an operation against one or a set of other nested operators like <And>
, <Or>
or <Not>
.
Check if the type of the current discovered object is testtype
.
Example:
<Condition> <Equals> <OMType/> <Value>testtype</Value> </Equals> </Condition>
Check if the CI is related to a node that is located in the europe.example.com
domain.
Example:
<Condition> <EndsWith> <XPathResult>//.[node='true']/attributes/ host_dnsName<XPathResult> <Value>.europe.example.com</Value> </EndsWith> </Condition>