pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Data Fields
pcmk_rule_input Struct Reference

Data used to evaluate a rule (any NULL items are ignored) More...

#include <include/crm/common/rules.h>

Collaboration diagram for pcmk_rule_input:
Collaboration graph
[legend]

Data Fields

const crm_time_tnow
 Current time for rule evaluation purposes. More...
 
const char * rsc_standard
 Resource standard that rule applies to. More...
 
const char * rsc_provider
 Resource provider that rule applies to. More...
 
const char * rsc_agent
 Resource agent that rule applies to. More...
 
const char * op_name
 
guint op_interval_ms
 Operation name that rule applies to. More...
 
GHashTable * node_attrs
 Operation interval that rule applies to. More...
 
GHashTable * rsc_params
 
GHashTable * rsc_meta
 
const char * rsc_id
 Resource ID to compare against a location constraint's resource pattern. More...
 
const regmatch_t * rsc_id_submatches
 Resource pattern submatches (as set by regexec()) for rsc_id. More...
 
int rsc_id_nmatches
 Number of entries in rsc_id_submatches. More...
 

Detailed Description

Data used to evaluate a rule (any NULL items are ignored)

Definition at line 57 of file rules.h.

Field Documentation

◆ node_attrs

GHashTable* pcmk_rule_input::node_attrs

Operation interval that rule applies to.

Node attributes for rule evaluation purposes

Note
Though not const, this is used only with g_hash_table_lookup().

Definition at line 77 of file rules.h.

◆ now

const crm_time_t* pcmk_rule_input::now

Current time for rule evaluation purposes.

Definition at line 59 of file rules.h.

◆ op_interval_ms

guint pcmk_rule_input::op_interval_ms

Operation name that rule applies to.

Definition at line 68 of file rules.h.

◆ op_name

const char* pcmk_rule_input::op_name

Definition at line 67 of file rules.h.

◆ rsc_agent

const char* pcmk_rule_input::rsc_agent

Resource agent that rule applies to.

Definition at line 64 of file rules.h.

◆ rsc_id

const char* pcmk_rule_input::rsc_id

Resource ID to compare against a location constraint's resource pattern.

Definition at line 96 of file rules.h.

◆ rsc_id_nmatches

int pcmk_rule_input::rsc_id_nmatches

Number of entries in rsc_id_submatches.

Definition at line 102 of file rules.h.

◆ rsc_id_submatches

const regmatch_t* pcmk_rule_input::rsc_id_submatches

Resource pattern submatches (as set by regexec()) for rsc_id.

Definition at line 99 of file rules.h.

◆ rsc_meta

GHashTable* pcmk_rule_input::rsc_meta

Resource meta-attributes that can be used as the reference value source

Note
Though not const, this is used only with g_hash_table_lookup().

Definition at line 93 of file rules.h.

◆ rsc_params

GHashTable* pcmk_rule_input::rsc_params

Resource parameters that can be used as the reference value source

Note
Though not const, this is used only with g_hash_table_lookup().

Definition at line 86 of file rules.h.

◆ rsc_provider

const char* pcmk_rule_input::rsc_provider

Resource provider that rule applies to.

Definition at line 63 of file rules.h.

◆ rsc_standard

const char* pcmk_rule_input::rsc_standard

Resource standard that rule applies to.

Definition at line 62 of file rules.h.


The documentation for this struct was generated from the following file: