pacemaker  1.1.17-b36b869ca8
Scalable High-Availability cluster resource manager
alerts_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Andrew Beekhof <andrew@beekhof.net>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This software is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef ALERT_INTERNAL_H
20 #define ALERT_INTERNAL_H
21 /* Default-Timeout to use before killing a alerts script (in milliseconds) */
22 # define CRM_ALERT_DEFAULT_TIMEOUT_MS (30000)
23 
24 /* Default-Format-String used to pass timestamps to the alerts scripts */
25 # define CRM_ALERT_DEFAULT_TSTAMP_FORMAT "%H:%M:%S.%06N"
26 
27 typedef struct {
28  char *id;
29  char *path;
30  int timeout;
32  char *recipient;
35 
51 };
52 
54 extern guint crm_alert_max_alert_timeout;
55 extern const char *crm_alert_keys[14][3];
56 
57 void crm_free_alert_list(void);
60 GListPtr crm_get_envvars_from_cib(xmlNode *basenode, crm_alert_entry_t *entry, int *count);
61 void crm_set_alert_key(enum crm_alert_keys_e name, const char *value);
62 void crm_set_alert_key_int(enum crm_alert_keys_e name, int value);
63 void crm_unset_alert_keys(void);
66 #endif
char * recipient
void crm_unset_envvar_list(crm_alert_entry_t *entry)
Definition: alerts.c:253
void crm_set_envvar_list(crm_alert_entry_t *entry)
Definition: alerts.c:235
GListPtr crm_alert_list
Definition: alerts.c:29
guint crm_alert_max_alert_timeout
Definition: alerts.c:30
char * tstamp_format
void crm_free_alert_list(void)
Definition: alerts.c:77
char * id
void crm_unset_alert_keys(void)
Definition: alerts.c:221
void crm_set_alert_key_int(enum crm_alert_keys_e name, int value)
Definition: alerts.c:212
GListPtr crm_drop_envvars(crm_alert_entry_t *entry, int count)
Definition: alerts.c:106
void crm_set_alert_key(enum crm_alert_keys_e name, const char *value)
Definition: alerts.c:197
void crm_add_dup_alert_list_entry(crm_alert_entry_t *entry)
Definition: alerts.c:150
int timeout
crm_alert_keys_e
char * path
GListPtr crm_get_envvars_from_cib(xmlNode *basenode, crm_alert_entry_t *entry, int *count)
Definition: alerts.c:170
GList * GListPtr
Definition: crm.h:202
const char * crm_alert_keys[14][3]
Definition: alerts.c:36
GListPtr envvars