10#ifndef PCMK__CRM_COMMON_ALERTS_INTERNAL__H
11#define PCMK__CRM_COMMON_ALERTS_INTERNAL__H
17#include <libxml/tree.h>
24#define PCMK__ALERT_DEFAULT_TIMEOUT_MS (30000)
27#define PCMK__ALERT_DEFAULT_TSTAMP_FORMAT "%H:%M:%S.%06N"
74#define PCMK__ALERT_INTERNAL_KEY_MAX 19
75#define PCMK__ALERT_NODE_SEQUENCE "CRM_alert_node_sequence"
89static inline const char *
97 default:
return "unknown";
GList * pcmk__unpack_alerts(const xmlNode *alerts)
void pcmk__free_alert(pcmk__alert_t *entry)
pcmk__alert_t * pcmk__alert_new(const char *id, const char *path)
Create a new alert entry structure.
pcmk__alert_t * pcmk__dup_alert(const pcmk__alert_t *entry)
const char * pcmk__alert_keys[PCMK__ALERT_INTERNAL_KEY_MAX]
@ PCMK__alert_key_timestamp_epoch
@ PCMK__alert_key_interval
@ PCMK__alert_key_timestamp
@ PCMK__alert_key_select_attribute_name
@ PCMK__alert_key_attribute_name
@ PCMK__alert_key_target_rc
@ PCMK__alert_key_timestamp_usec
@ PCMK__alert_key_select_kind
@ PCMK__alert_key_node_sequence
@ PCMK__alert_key_recipient
@ PCMK__alert_key_exec_time
@ PCMK__alert_key_version
@ PCMK__alert_key_attribute_value
void pcmk__free_alerts(GList *alert_list)
void pcmk__add_alert_key_int(GHashTable *table, enum pcmk__alert_keys_e name, int value)
#define PCMK__ALERT_INTERNAL_KEY_MAX
void pcmk__add_alert_key(GHashTable *table, enum pcmk__alert_keys_e name, const char *value)
char ** select_attribute_name