pacemaker  1.1.18-7fdfbbe
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_envvar_t
 
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   16
 
#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_select_kind, CRM_alert_select_attribute_name
}
 

Functions

crm_alert_entry_tcrm_dup_alert_entry (crm_alert_entry_t *entry)
 
crm_alert_envvar_tcrm_dup_alert_envvar (crm_alert_envvar_t *src)
 
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_free_alert_envvar (crm_alert_envvar_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 26 of file alerts_internal.h.

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

Definition at line 29 of file alerts_internal.h.

#define CRM_ALERT_INTERNAL_KEY_MAX   16

Definition at line 77 of file alerts_internal.h.

#define CRM_ALERT_NODE_SEQUENCE   "CRM_alert_node_sequence"

Definition at line 78 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 36 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_select_kind 
CRM_alert_select_attribute_name 

Definition at line 56 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 70 of file alerts.c.

crm_alert_entry_t* crm_dup_alert_entry ( crm_alert_entry_t entry)

Definition at line 119 of file alerts.c.

crm_alert_envvar_t* crm_dup_alert_envvar ( crm_alert_envvar_t src)

Definition at line 100 of file alerts.c.

void crm_free_alert_entry ( crm_alert_entry_t entry)

Definition at line 83 of file alerts.c.

void crm_free_alert_envvar ( crm_alert_envvar_t entry)

Definition at line 51 of file alerts.c.

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

Definition at line 153 of file alerts.c.

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

Definition at line 167 of file alerts.c.

bool crm_patchset_contains_alert ( xmlNode *  msg,
bool  config 
)

Definition at line 233 of file alerts.c.

void crm_set_envvar_list ( crm_alert_entry_t entry)

Definition at line 192 of file alerts.c.

void crm_unset_alert_keys ( void  )

Definition at line 139 of file alerts.c.

void crm_unset_envvar_list ( crm_alert_entry_t entry)

Definition at line 203 of file alerts.c.

Variable Documentation

const char* crm_alert_keys[CRM_ALERT_INTERNAL_KEY_MAX][3]

Definition at line 30 of file alerts.c.