#include <glib.h>
#include <stdbool.h>
Go to the source code of this file.
|
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
} |
|
#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" |
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.
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 crm_free_alert_entry().
Definition at line 70 of file alerts.c.
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 |
|
) |
| |
bool crm_patchset_contains_alert |
( |
xmlNode * |
msg, |
|
|
bool |
config |
|
) |
| |
void crm_unset_alert_keys |
( |
void |
| ) |
|