Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

rmClientTypes.h

Go to the documentation of this file.
00001 #ifndef __rmClientTypes_h
00002 #define __rmClientTypes_h
00003 
00004 #include <posix_evlog.h>
00005 
00007 const static int UUID_STRING_LENGTH = 37;
00008 
00025 typedef enum _MonitorCommand
00026 {
00027   NEW_MONITORENTRY = 1,
00028   CREATE_MONITOR,
00029   START_MONITOR,
00030   STOP_MONITOR,
00031   RESET_MONITOR,
00032   DELETE_MONITOR,
00033   PAUSE_NOTIFICATION,
00034   RESET_NOTIFICATION
00035 } MonitorCommand;
00036 
00037 typedef enum _NotificationFlag
00038 {
00039   NOTIFY_ALWAYS = 1,
00040   NOTIFY_ONCE_ONLY
00041 } NotificationFlag;
00042 
00043 typedef enum _EventCommand
00044 {
00045   CREATE_NOTIFICATION = 1,
00046   REMOVE_NOTIFICATION
00047 } EventCommand;
00048 
00049 typedef enum _EventNotificationPurpose
00050 {
00051   PURPOSE_NOTIFY = 1,
00052   PURPOSE_SEEK,
00053   PURPOSE_GENERAL
00054 } EventNotificationPurpose;
00055 
00056 typedef struct 
00057 {
00058   posix_log_recid_t recid;
00059   unsigned long monid;
00060 } eventData;
00061 
00062 
00075 typedef enum _RowStatus
00076 {
00077   NOTEXIST=0,
00078   ACTIVE=1,
00079   NOTINSERVICE,
00080   NOTREADY,
00081   CREATEANDGO,
00082   CREATEANDWAIT,
00083   DESTROY
00084 } RowStatus;
00085 
00096 typedef enum _RMEntity
00097 {
00098   GENERICCONFIG=1,
00099   THRESHOLDCONFIG,
00100   WATERMARKCONFIG,
00101   LEAKYBUCKETCONFIG,
00102   GENERICCONTROL,
00103   THRESHOLDCONTROL,
00104   // WATERMARKCONTROL,
00105   LEAKYBUCKETCONTROL,
00106   MONITOR,
00107   // EVENT,
00108 
00109   EVENTQUERY,
00110   EVENTNOTIFICATION,
00111   EVENTHANDLER,
00112   EVENTACTION,
00113   EVENTLOG,
00114 
00115   SUBSYSTEMINFO,
00116   RESORUCEINFO,
00117   STATISTICINFO,
00118   INLINEMONITORINFO,
00119   DATACAPTUREPLUGININFO
00120 } RMEntity;
00121 
00136 typedef enum _RMAttribute
00137 {
00138   GENERICCONFIG_MONITORTYPE=1,           // long
00139   GENERICCONFIG_SUBSYSTEMID,             // unsigned long
00140   GENERICCONFIG_STATISTICID,             // unsigned long
00141   GENERICCONFIG_RESOURCEID,              // unsigned long
00142   GENERICCONFIG_STATISTICTRANSFORM,      // long
00143   GENERICCONFIG_THRESHOLDID,             // unsigned long
00144   GENERICCONFIG_WATERMARKID,             // unsigned long
00145   GENERICCONFIG_LEAKYBUCKETID,           // unsigned long
00146   GENERICCONFIG_REFCOUNT,                // long, ronly(addRef, release)
00147   GENERICCONFIG_STATUS,                  // long
00148   // GENERICCONFIG_ID,                      // unsigned long, ronly
00149 
00150   THRESHOLDCONFIG_TYPE,                  // long
00151   THRESHOLDCONFIG_VALUE32,               // unsigned long
00152   THRESHOLDCONFIG_VALUE64,               // u_int64_t
00153   THRESHOLDCONFIG_TESTCONDITION,         // long
00154   THRESHOLDCONFIG_PRECONDITION,          // long
00155   THRESHOLDCONFIG_EVENTSEVERITY,         // long
00156   THRESHOLDCONFIG_CANCELEVENTSEVERITY,   // long
00157   THRESHOLDCONFIG_REFCOUNT,              // long, ronly(addref, release)
00158   THRESHOLDCONFIG_STATUS,                // long
00159   // THRESHOLDCONFIG_ID,                    // unsigned long, ronly
00160 
00161   WATERMARKCONFIG_TYPE,                  // long
00162   WATERMARKCONFIG_REFCOUNT,              // long, ronly(addref, release)
00163   WATERMARKCONFIG_STATUS,                // long
00164   // WATERMARKCONFIG_ID,                    // unsigned long, ronly
00165 
00166   LEAKYBUCKETCONFIG_BUCKETSIZE32,        // unsigned long 
00167   LEAKYBUCKETCONFIG_BUCKETSIZE64,        // u_int64_t
00168   LEAKYBUCKETCONFIG_FILLVALUE32,         // unsigned long
00169   LEAKYBUCKETCONFIG_FILLVALUE64,         // u_int64_t
00170   LEAKYBUCKETCONFIG_EVENTSEVERITY,       // long
00171   LEAKYBUCKETCONFIG_REFCOUNT,            // long, ronly
00172   LEAKYBUCKETCONFIG_STATUS,              // long
00173 
00174   GENERICCONTROL_MONITORTYPE,            // long
00175   GENERICCONTROL_MONITORUUID,            // uuid_t
00176   // GENERICCONTROL_INLINEMONITORID,        // unsigned long
00177   GENERICCONTROL_MONITORLOCATION,        // long
00178   GENERICCONTROL_DATACAPTURE,            // uuid_t
00179   GENERICCONTROL_MONITORLIFE,            // unsigned long, time_t
00180   GENERICCONTROL_MONITORRATE,            // unsigned long, time_t
00181   GENERICCONTROL_MONITORMICRORATE,       // unsigned long, 
00182   GENERICCONTROL_THRESHOLDID,            // unsigned long
00183   GENERICCONTROL_LEAKYBUCKETID,          // unsigned long
00184   GENERICCONTROL_REFCOUNT,               // long, ronly(addref, release)
00185   GENERICCONTROL_STATUS,                 // long
00186   // GENERICCONTROL_ID,                     // unsigned long, ronly
00187 
00188   THRESHOLDCONTROL_TOLERANCE32,          // unsigned long
00189   THRESHOLDCONTROL_TOLERANCE64,          // u_int64_t
00190   THRESHOLDCONTROL_SAMPLETIME,           // unsigned long
00191   THRESHOLDCONTROL_LOGRATE,              // unsigned long, time_t
00192   THRESHOLDCONTROL_REFCOUNT,             // long, ronly(addref, release)
00193   THRESHOLDCONTROL_STATUS,               // long
00194   // THRESHOLDCONTROL_ID,                   // unsigned long, ronly
00195 
00196   LEAKYBUCKETCONTROL_LOGGINGRATE,        // unsigned long, time_t
00197   LEAKYBUCKETCONTROL_REFCOUNT,           // long
00198   LEAKYBUCKETCONTROL_STATUS,             // long
00199 
00200   MONITOR_UUID,                          // uuid_t, char[16], ronly
00201   MONITOR_CONTROLID,                     // unsigned long
00202   MONITOR_CONFIGID,                      // unsigned long
00203   MONITOR_LOCATION,                      // long, ronly
00204   MONITOR_TYPE,                          // long, ronly
00205   MONITOR_STATUS,                        // long, ronly
00206   MONITOR_NOTIFICATIONPAUSED,            // long, ronly
00207   MONITOR_SUBSYSTEMID,                   // unsigned long, ronly 
00208   MONITOR_SUBSYSTEMUUID,                 // uuid_t, ronly
00209   MONITOR_RESORUCEID,                    // unsigned long, ronly
00210   MONITOR_STATISTICID,                   // unsigned long, ronly
00211   MONITOR_LASTVALUE32,                   // unsigned long, ronly
00212   MONITOR_LASTVALUE64,                   // u_int64_t, ronly
00213   MONITOR_STARTTIME,                     // unsigned long, ronly
00214   MONITOR_STOPTIME,                      // unsigned long, ronly
00215   MONITOR_THRESHOLDLASTEVENTTIME,        // unsigned long, ronly
00216   MONITOR_WATERMARKHIGHTIME,             // unsigned long, ronly
00217   MONITOR_WATERMARKLOWTIME,              // unsigned long, ronly
00218   MONITOR_WATERMARKHIGH32,               // unsigned long, ronly
00219   MONITOR_WATERMARKHIGH64,               // u_int64_t, ronly
00220   MONITOR_WATERMARKLOW32,                // unsigned long, ronly
00221   MONITOR_WATERMARKLOW64,                // u_int64_t, ronly
00222   MONITOR_LEAKYBUCKETLEVEL32,            // unsigned long, ronly
00223   MONITOR_LEAKYBUCKETLEVEL64,            // u_int64_t, ronly
00224   MONITOR_LEAKYBUCKETLASTEVENTTIME,      // unsigned long, ronly
00225   MONITOR_COMMAND,                       // long
00226   MONITOR_SNMPTRAP,                      // long
00227   // MONITOR_ID,                            // unsigned long, ronly
00228 
00229   // EVENT_MONITORID,                       // long
00230   // EVENT_MONITORUUID,                     // uuid_t, ronly
00231   // EVENT_QUERYSTRING,                     // char[]
00232   // EVENT_NOTIFICATIONFLAG,                // long
00233   // EVENT_COMMAND,                         // long
00234   // EVENT_STATUS,                          // long 
00235   // EVENT_ID,                              // unsigned long, ronly
00236 
00237   EVENTQUERY_STRING,                     // char[]
00238   EVENTQUERY_PURPOSE,                    // long
00239   EVENTQUERY_REFCOUNT,                   // long, ronly
00240   EVENTQUERY_STATUS,                     // long
00241 
00242   EVENTNOTIFICATION_QUERYID,             // unsigned long
00243   EVENTNOTIFICATION_ONCEONLY,            // long
00244   EVENTNOTIFICATION_TRAPGENERIC,         // long
00245   EVENTNOTIFICATION_STATUS,              // long
00246 
00247   EVENTHANDLER_COMMAND,                  // char[] 
00248   EVENTHANDLER_USER,                     // char[]
00249   EVENTHANDLER_REFCOUNT,                 // long, ronly
00250   EVENTHANDLER_STATUS,                   // long
00251 
00252   EVENTACTION_QUERYID,                   // unsigned long
00253   EVENTACTION_HANDLER,                   // unsigned long
00254   EVENTACTION_TYPE,                      // long
00255   EVENTACTION_STATUS,                    // long
00256 
00257   EVENTLOG_DEFAULTQUERY,                 // unsigned long, 
00258   EVENTLOG_DEFAULTFILE,                  // char[],
00259   EVENTLOG_SIZE,                         // unsigned long, ronly
00260   EVENTLOG_FORMAT,                       // long, ronly
00261   EVENTLOG_TYPE,                         // long, ronly
00262   EVENTLOG_FACILITY,                     // long, ronly
00263   EVENTLOG_SEVERITY,                     // long, ronly
00264   EVENTLOG_UID,                          // unsigned long, ronly
00265   EVENTLOG_GID,                          // unsigned long, ronly
00266   EVENTLOG_PID,                          // unsigned long, ronly
00267   EVENTLOG_PGID,                         // unsigned long, ronly
00268   EVENTLOG_TIMESTAMP,                    // char[], rlong
00269   EVENTLOG_FLAG,                         // unsigned long, ronly
00270   EVENTLOG_THREAD,                       // unsigned long, ronly
00271   EVENTLOG_PROCESSOR,                    // unsigned long, ronly
00272   EVENTLOG_STRING,                       // char[], ronly
00273   EVENTLOG_BINARY,                       // char[], ronly
00274 
00275   SUBSYSTEMINFO_NAME,                    // char*, ronly
00276   SUBSYSTEMINFO_DESCRIPTION,             // char*, ronly
00277   SUBSYSTEMINFO_UUID,                    // uuid_t, char[16], ronly
00278   SUBSYSTEMINFO_RESOURCECOUNT,           // unsigned long, ronly
00279   SUBSYSTEMINFO_STATISTICCOUNT,          // unsigned long, ronly
00280 
00281   RESORUCEINFO_NAME,                     // char*, ronly
00282   RESOURCEINFO_DESCRIPTION,              // char*, ronly
00283   RESOURCEINFO_SUBSYSTEMUUID,            // uuid_t, char[16], ronly
00284   RESOURCEINFO_RESOURCEID,               // unsigned long, ronly
00285   RESOURCEINFO_SUBSYSTEMID,              // unsigned long, ronly
00286 
00287   STATISTICINFO_NAME,                    // char*, ronly
00288   STATISTICINFO_DESCRIPTION,             // char*, ronly
00289   STATISTICINFO_UNITS,                   // char*, ronly
00290   STATISTICINFO_SUBSYSTEMUUID,           // uuid_t, char[16], ronly
00291   STATISTICINFO_SUBSYSTEMID,             // unsigned long, ronly
00292   STATISTICINFO_RESOURCEID,              // unsigned long, ronly
00293   STATISTICINFO_ID,                      // unsigned long, ronly
00294   STATISTICINFO_TYPE,                    // long, ronly
00295   STATISTICINFO_SIZE,                    // long, ronly
00296   STATISTICINFO_SCALE,                   // long, ronly
00297   // STATISTICINFO_INLINEMONITORCOUNT,      // unsigned long, ronly
00298   STATISTICINFO_COUNTERRESET,            // long
00299   STATISTICINFO_COUNTERRESETVALUE32,     // unsigned long, 
00300   STATISTICINFO_COUNTERRESETVALUE64,     // u_int64_t,
00301   STATISTICINFO_GAUGEUPPERBOUND32,       // unsigned long, ronly
00302   STATISTICINFO_GAUGEUPPERBOUND64,       // u_int_64_t, ronly
00303 
00304   // INLINEMONITORINFO_NAME,                // char*, ronly
00305   // INLINEMONITORINFO_DESCRIPTION,         // char*, ronly
00306   // INLINEMONITORINFO_ID,                  // unsigned long, ronly
00307   // INLINEMONITORINFO_CONFIGID,            // unsigned long, ronly
00308   // INLINEMONITORINFO_SUBSYSTEMUUID,       // uuid_t, char[16], ronly
00309   // INLINEMONITORINFO_SUBSYSTEMID,         // unsigned long, ronly
00310   // INLINEMONITORINFO_RESOURCEID,          // unsigned long, ronly
00311   // INLINEMONITORINFO_STATISTICID          // unsigned long, ronly
00312 
00313   DATACAPTUREPLUGININFO_UUID,           // uuid_t, ronly 
00314   DATACAPTUREPLUGININFO_NAME            // char[], ronly
00315 } RMAttribute;
00316 
00317 #endif // __rmClientTypes_h
00318 

Generated on Tue Sep 10 16:46:32 2002 for ResourceMonitorSNMPSubagent by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002