pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
alerts_internal.h File Reference
#include <glib.h>
#include <stdbool.h>
Include dependency graph for alerts_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  crm_alert_entry_t
 

Macros

#define CRM_ALERT_DEFAULT_TIMEOUT_MS   (30000)
 
#define CRM_ALERT_DEFAULT_TSTAMP_FORMAT   "%H:%M:%S.%06N"
 
#define CRM_ALERT_INTERNAL_KEY_MAX   19
 
#define CRM_ALERT_NODE_SEQUENCE   "CRM_alert_node_sequence"
 

Enumerations

enum  crm_alert_flags {
  crm_alert_none = 0x0000, crm_alert_node = 0x0001, crm_alert_fencing = 0x0002, crm_alert_resource = 0x0004,
  crm_alert_attribute = 0x0008, crm_alert_default = crm_alert_node|crm_alert_fencing|crm_alert_resource
}
 
enum  crm_alert_keys_e {
  CRM_alert_recipient = 0, CRM_alert_node, CRM_alert_nodeid, CRM_alert_rsc,
  CRM_alert_task, CRM_alert_interval, CRM_alert_desc, CRM_alert_status,
  CRM_alert_target_rc, CRM_alert_rc, CRM_alert_kind, CRM_alert_version,
  CRM_alert_node_sequence, CRM_alert_timestamp, CRM_alert_attribute_name, CRM_alert_attribute_value,
  CRM_alert_timestamp_epoch, CRM_alert_timestamp_usec, CRM_alert_exec_time, CRM_alert_select_kind,
  CRM_alert_select_attribute_name
}
 

Functions

crm_alert_entry_tcrm_dup_alert_entry (crm_alert_entry_t *entry)
 
crm_alert_entry_tcrm_alert_entry_new (const char *id, const char *path)
 Create a new alert entry structure. More...
 
void crm_free_alert_entry (crm_alert_entry_t *entry)
 
void crm_insert_alert_key (GHashTable *table, enum crm_alert_keys_e name, const char *value)
 
void crm_insert_alert_key_int (GHashTable *table, enum crm_alert_keys_e name, int value)
 
void crm_unset_alert_keys (void)
 
void crm_set_envvar_list (crm_alert_entry_t *entry)
 
void crm_unset_envvar_list (crm_alert_entry_t *entry)
 
bool crm_patchset_contains_alert (xmlNode *msg, bool config)
 

Variables

const char * crm_alert_keys [CRM_ALERT_INTERNAL_KEY_MAX][3]
 

Macro Definition Documentation

#define CRM_ALERT_DEFAULT_TIMEOUT_MS   (30000)

Definition at line 17 of file alerts_internal.h.

#define CRM_ALERT_DEFAULT_TSTAMP_FORMAT   "%H:%M:%S.%06N"

Definition at line 20 of file alerts_internal.h.

#define CRM_ALERT_INTERNAL_KEY_MAX   19

Definition at line 66 of file alerts_internal.h.

#define CRM_ALERT_NODE_SEQUENCE   "CRM_alert_node_sequence"

Definition at line 67 of file alerts_internal.h.

Enumeration Type Documentation

Enumerator
crm_alert_none 
crm_alert_node 
crm_alert_fencing 
crm_alert_resource 
crm_alert_attribute 
crm_alert_default 

Definition at line 22 of file alerts_internal.h.

Enumerator
CRM_alert_recipient 
CRM_alert_node 
CRM_alert_nodeid 
CRM_alert_rsc 
CRM_alert_task 
CRM_alert_interval 
CRM_alert_desc 
CRM_alert_status 
CRM_alert_target_rc 
CRM_alert_rc 
CRM_alert_kind 
CRM_alert_version 
CRM_alert_node_sequence 
CRM_alert_timestamp 
CRM_alert_attribute_name 
CRM_alert_attribute_value 
CRM_alert_timestamp_epoch 
CRM_alert_timestamp_usec 
CRM_alert_exec_time 
CRM_alert_select_kind 
CRM_alert_select_attribute_name 

Definition at line 42 of file alerts_internal.h.

Function Documentation

crm_alert_entry_t* crm_alert_entry_new ( const char *  id,
const char *  path 
)

Create a new alert entry structure.

Parameters
[in]idID to use
[in]pathPath to alert agent executable
Returns
Pointer to newly allocated alert entry
Note
Non-string fields will be filled in with defaults. It is the caller's responsibility to free the result, using crm_free_alert_entry().

Definition at line 54 of file alerts.c.

crm_alert_entry_t* crm_dup_alert_entry ( crm_alert_entry_t entry)

Definition at line 92 of file alerts.c.

void crm_free_alert_entry ( crm_alert_entry_t entry)

Definition at line 67 of file alerts.c.

void crm_insert_alert_key ( GHashTable *  table,
enum crm_alert_keys_e  name,
const char *  value 
)

Definition at line 126 of file alerts.c.

void crm_insert_alert_key_int ( GHashTable *  table,
enum crm_alert_keys_e  name,
int  value 
)

Definition at line 140 of file alerts.c.

bool crm_patchset_contains_alert ( xmlNode *  msg,
bool  config 
)

Definition at line 206 of file alerts.c.

void crm_set_envvar_list ( crm_alert_entry_t entry)

Definition at line 165 of file alerts.c.

void crm_unset_alert_keys ( void  )

Definition at line 112 of file alerts.c.

void crm_unset_envvar_list ( crm_alert_entry_t entry)

Definition at line 176 of file alerts.c.

Variable Documentation

const char* crm_alert_keys[CRM_ALERT_INTERNAL_KEY_MAX][3]

Definition at line 19 of file alerts.c.