/[monit]/monit/event.h
ViewVC logotype

Diff of /monit/event.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by martinp, Mon Sep 5 09:51:37 2005 UTC revision 1.23 by martinp, Sat Nov 5 14:09:00 2005 UTC
# Line 22  Line 22 
22    
23  #include "monitor.h"  #include "monitor.h"
24    
25  #define EVENT_NULL         0x0  #define EVENT_NULL            0x0
26  #define EVENT_CHECKSUM     0x1  #define EVENT_CHECKSUM        0x1
27  #define EVENT_RESOURCE     0x2  #define EVENT_RESOURCE        0x2
28  #define EVENT_TIMEOUT      0x4  #define EVENT_TIMEOUT         0x4
29  #define EVENT_TIMESTAMP    0x8  #define EVENT_TIMESTAMP       0x8
30  #define EVENT_SIZE         0x10  #define EVENT_SIZE            0x10
31  #define EVENT_CONNECTION   0x20  #define EVENT_CONNECTION      0x20
32  #define EVENT_PERMISSION   0x40  #define EVENT_PERMISSION      0x40
33  #define EVENT_UID          0x80  #define EVENT_UID             0x80
34  #define EVENT_GID          0x100  #define EVENT_GID             0x100
35  #define EVENT_NONEXIST     0x200  #define EVENT_NONEXIST        0x200
36  #define EVENT_INVALID      0x400  #define EVENT_INVALID         0x400
37  #define EVENT_DATA         0x800  #define EVENT_DATA            0x800
38  #define EVENT_EXEC         0x1000  #define EVENT_EXEC            0x1000
39  #define EVENT_CHANGED      0x2000  #define EVENT_CHANGED         0x2000
40  #define EVENT_ICMP         0x4000  #define EVENT_ICMP            0x4000
41  #define EVENT_MATCH        0x8000  #define EVENT_MATCH           0x8000
42    #define EVENT_INSTANCE        0x10000
43    
44    #define HANDLER_PASSED     0x0
45    #define HANDLER_ALERT      0x1
46    #define HANDLER_COLLECTOR  0x2
47    
 #define EVENT_DESCRIPTION(E) Event_get_description(E)  
48  #define IS_EVENT_SET(value, mask) ((value & mask) != 0)  #define IS_EVENT_SET(value, mask) ((value & mask) != 0)
49    
50  typedef struct myeventtable {  typedef struct myeventtable {
# Line 89  Service_T Event_get_source(Event_T E); Line 93  Service_T Event_get_source(Event_T E);
93    
94    
95  /**  /**
96     * Get the Service name where the event orginated
97     * @param E An event object
98     * @return The Service name where the event orginated
99     */
100    char *Event_get_source_name(Event_T E);
101    
102    
103    /**
104     * Get the group name of the service where the event orginated
105     * @param E An event object
106     * @return The group name of the service where the event orginated
107     */
108    char *Event_get_source_group(Event_T E);
109    
110    
111    /**
112     * Get the service type of the service where the event orginated
113     * @param E An event object
114     * @return The service type of the service where the event orginated
115     */
116    int Event_get_source_type(Event_T E);
117    
118    
119    /**
120   * Get the Event timestamp   * Get the Event timestamp
121   * @param E An event object   * @param E An event object
122   * @return The Event timestamp   * @return The Event timestamp
# Line 164  short Event_get_action(Event_T E); Line 192  short Event_get_action(Event_T E);
192  const char *Event_get_action_description(Event_T E);  const char *Event_get_action_description(Event_T E);
193    
194    
195    /**
196     * Reprocess the partialy handled event queue
197     */
198    void Event_queue_process();
199    
200    
201  #endif  #endif

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26