![]() |
pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
|
Scheduler API for rules. More...


Go to the source code of this file.
Data Structures | |
| struct | pcmk_rule_input |
| Data used to evaluate a rule (any NULL items are ignored) More... | |
Typedefs | |
| typedef struct pcmk_rule_input | pcmk_rule_input_t |
| Data used to evaluate a rule (any NULL items are ignored) More... | |
Enumerations | |
| enum | expression_type { pcmk__condition_unknown = 0, pcmk__condition_rule = 1, pcmk__condition_attribute = 2, pcmk__condition_location = 3, pcmk__condition_datetime = 5, pcmk__condition_resource = 7, pcmk__condition_operation = 8, not_expr = pcmk__condition_unknown, nested_rule = pcmk__condition_rule, attr_expr = pcmk__condition_attribute, loc_expr = pcmk__condition_location, role_expr = 4, time_expr = pcmk__condition_datetime, version_expr = 6, rsc_expr = pcmk__condition_resource, op_expr = pcmk__condition_operation } |
Functions | |
| int | pcmk_evaluate_rule (xmlNode *rule, const pcmk_rule_input_t *rule_input, crm_time_t *next_change) |
| Evaluate a single rule, including all its conditions. More... | |
Scheduler API for rules.
Definition in file rules.h.
| typedef struct pcmk_rule_input pcmk_rule_input_t |
Data used to evaluate a rule (any NULL items are ignored)
| enum expression_type |
| int pcmk_evaluate_rule | ( | xmlNode * | rule, |
| const pcmk_rule_input_t * | rule_input, | ||
| crm_time_t * | next_change | ||
| ) |
Evaluate a single rule, including all its conditions.
| [in,out] | rule | XML containing a rule definition or its id-ref |
| [in] | rule_input | Values used to evaluate rule criteria |
| [out] | next_change | If not NULL, set to when evaluation will change |
pcmk_rc_ok if the rule is satisfied, some other value if it is not)
1.8.14