#include <glib.h>
#include <stdbool.h>
Go to the source code of this file.
|
enum | pcmk__alert_flags {
pcmk__alert_none = 0,
pcmk__alert_node = (1 << 0),
pcmk__alert_fencing = (1 << 1),
pcmk__alert_resource = (1 << 2),
pcmk__alert_attribute = (1 << 3),
pcmk__alert_default
} |
|
enum | pcmk__alert_keys_e {
PCMK__alert_key_recipient = 0,
PCMK__alert_key_node,
PCMK__alert_key_nodeid,
PCMK__alert_key_rsc,
PCMK__alert_key_task,
PCMK__alert_key_interval,
PCMK__alert_key_desc,
PCMK__alert_key_status,
PCMK__alert_key_target_rc,
PCMK__alert_key_rc,
PCMK__alert_key_kind,
PCMK__alert_key_version,
PCMK__alert_key_node_sequence,
PCMK__alert_key_timestamp,
PCMK__alert_key_attribute_name,
PCMK__alert_key_attribute_value,
PCMK__alert_key_timestamp_epoch,
PCMK__alert_key_timestamp_usec,
PCMK__alert_key_exec_time,
PCMK__alert_key_select_kind,
PCMK__alert_key_select_attribute_name
} |
|
#define PCMK__ALERT_DEFAULT_TIMEOUT_MS (30000) |
#define PCMK__ALERT_DEFAULT_TSTAMP_FORMAT "%H:%M:%S.%06N" |
#define PCMK__ALERT_INTERNAL_KEY_MAX 19 |
#define PCMK__ALERT_NODE_SEQUENCE "CRM_alert_node_sequence" |
Enumerator |
---|
pcmk__alert_none |
|
pcmk__alert_node |
|
pcmk__alert_fencing |
|
pcmk__alert_resource |
|
pcmk__alert_attribute |
|
pcmk__alert_default |
|
Definition at line 22 of file alerts_internal.h.
Enumerator |
---|
PCMK__alert_key_recipient |
|
PCMK__alert_key_node |
|
PCMK__alert_key_nodeid |
|
PCMK__alert_key_rsc |
|
PCMK__alert_key_task |
|
PCMK__alert_key_interval |
|
PCMK__alert_key_desc |
|
PCMK__alert_key_status |
|
PCMK__alert_key_target_rc |
|
PCMK__alert_key_rc |
|
PCMK__alert_key_kind |
|
PCMK__alert_key_version |
|
PCMK__alert_key_node_sequence |
|
PCMK__alert_key_timestamp |
|
PCMK__alert_key_attribute_name |
|
PCMK__alert_key_attribute_value |
|
PCMK__alert_key_timestamp_epoch |
|
PCMK__alert_key_timestamp_usec |
|
PCMK__alert_key_exec_time |
|
PCMK__alert_key_select_kind |
|
PCMK__alert_key_select_attribute_name |
|
Definition at line 43 of file alerts_internal.h.
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.
- Parameters
-
[in] | id | ID to use |
[in] | path | Path 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 pcmk__free_alert().
Definition at line 95 of file alerts.c.