op_expression
is a rule condition based on an action of some resource agent. This rule is only valid within an op_defaults
context.
Example 8.10. True for all monitor actions
<rule id="rule1" score="INFINITY"> <op_expression id="rule_expr1" name="monitor"/> </rule>
Example 8.11. True for all monitor actions with a 10 second interval
<rule id="rule2" score="INFINITY"> <op_expression id="rule_expr2" name="monitor" interval="10s"/> </rule>