pacemaker
2.1.0-7c3f660
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <crm/crm.h>
#include <crm/lrmd.h>
#include <crm/msg_xml.h>
#include <crm/common/alerts_internal.h>
#include <crm/common/xml_internal.h>
#include <crm/cib/internal.h>
Go to the source code of this file.
Macros | |
#define | XPATH_PATCHSET1_DIFF "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED |
#define | XPATH_PATCHSET1_CRMCONFIG XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_CRMCONFIG |
#define | XPATH_PATCHSET1_ALERTS XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_ALERTS |
#define | XPATH_PATCHSET1_EITHER XPATH_PATCHSET1_CRMCONFIG " | " XPATH_PATCHSET1_ALERTS |
#define | XPATH_CONFIG "/" XML_TAG_CIB "/" XML_CIB_TAG_CONFIGURATION |
#define | XPATH_CRMCONFIG XPATH_CONFIG "/" XML_CIB_TAG_CRMCONFIG "/" |
#define | XPATH_ALERTS XPATH_CONFIG "/" XML_CIB_TAG_ALERTS |
Functions | |
pcmk__alert_t * | pcmk__alert_new (const char *id, const char *path) |
Create a new alert entry structure. More... | |
void | pcmk__free_alert (pcmk__alert_t *entry) |
pcmk__alert_t * | pcmk__dup_alert (pcmk__alert_t *entry) |
void | pcmk__add_alert_key (GHashTable *table, enum pcmk__alert_keys_e name, const char *value) |
void | pcmk__add_alert_key_int (GHashTable *table, enum pcmk__alert_keys_e name, int value) |
bool | pcmk__alert_in_patchset (xmlNode *msg, bool config) |
Variables | |
const char * | pcmk__alert_keys [PCMK__ALERT_INTERNAL_KEY_MAX][3] |
#define XPATH_ALERTS XPATH_CONFIG "/" XML_CIB_TAG_ALERTS |
#define XPATH_CONFIG "/" XML_TAG_CIB "/" XML_CIB_TAG_CONFIGURATION |
#define XPATH_CRMCONFIG XPATH_CONFIG "/" XML_CIB_TAG_CRMCONFIG "/" |
#define XPATH_PATCHSET1_ALERTS XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_ALERTS |
#define XPATH_PATCHSET1_CRMCONFIG XPATH_PATCHSET1_DIFF "//" XML_CIB_TAG_CRMCONFIG |
#define XPATH_PATCHSET1_DIFF "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED |
#define XPATH_PATCHSET1_EITHER XPATH_PATCHSET1_CRMCONFIG " | " XPATH_PATCHSET1_ALERTS |
void pcmk__add_alert_key | ( | GHashTable * | table, |
enum pcmk__alert_keys_e | name, | ||
const char * | value | ||
) |
void pcmk__add_alert_key_int | ( | GHashTable * | table, |
enum pcmk__alert_keys_e | name, | ||
int | value | ||
) |
bool pcmk__alert_in_patchset | ( | xmlNode * | msg, |
bool | config | ||
) |
pcmk__alert_t* pcmk__alert_new | ( | const char * | id, |
const char * | path | ||
) |
Create a new alert entry structure.
[in] | id | ID to use |
[in] | path | Path to alert agent executable |
pcmk__alert_t* pcmk__dup_alert | ( | pcmk__alert_t * | entry | ) |
void pcmk__free_alert | ( | pcmk__alert_t * | entry | ) |
const char* pcmk__alert_keys[PCMK__ALERT_INTERNAL_KEY_MAX][3] |