10#ifndef PCMK__ALERT_INTERNAL__H
11#define PCMK__ALERT_INTERNAL__H
17# define PCMK__ALERT_DEFAULT_TIMEOUT_MS (30000)
20# define PCMK__ALERT_DEFAULT_TSTAMP_FORMAT "%H:%M:%S.%06N"
67#define PCMK__ALERT_INTERNAL_KEY_MAX 19
68#define PCMK__ALERT_NODE_SEQUENCE "CRM_alert_node_sequence"
81static inline const char *
89 default:
return "unknown";
void pcmk__free_alert(pcmk__alert_t *entry)
const char * pcmk__alert_keys[PCMK__ALERT_INTERNAL_KEY_MAX][3]
pcmk__alert_t * pcmk__alert_new(const char *id, const char *path)
Create a new alert entry structure.
bool pcmk__alert_in_patchset(xmlNode *msg, bool config)
pcmk__alert_t * pcmk__dup_alert(const pcmk__alert_t *entry)
@ 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__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