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
00105 LEAKYBUCKETCONTROL,
00106 MONITOR,
00107
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,
00139 GENERICCONFIG_SUBSYSTEMID,
00140 GENERICCONFIG_STATISTICID,
00141 GENERICCONFIG_RESOURCEID,
00142 GENERICCONFIG_STATISTICTRANSFORM,
00143 GENERICCONFIG_THRESHOLDID,
00144 GENERICCONFIG_WATERMARKID,
00145 GENERICCONFIG_LEAKYBUCKETID,
00146 GENERICCONFIG_REFCOUNT,
00147 GENERICCONFIG_STATUS,
00148
00149
00150 THRESHOLDCONFIG_TYPE,
00151 THRESHOLDCONFIG_VALUE32,
00152 THRESHOLDCONFIG_VALUE64,
00153 THRESHOLDCONFIG_TESTCONDITION,
00154 THRESHOLDCONFIG_PRECONDITION,
00155 THRESHOLDCONFIG_EVENTSEVERITY,
00156 THRESHOLDCONFIG_CANCELEVENTSEVERITY,
00157 THRESHOLDCONFIG_REFCOUNT,
00158 THRESHOLDCONFIG_STATUS,
00159
00160
00161 WATERMARKCONFIG_TYPE,
00162 WATERMARKCONFIG_REFCOUNT,
00163 WATERMARKCONFIG_STATUS,
00164
00165
00166 LEAKYBUCKETCONFIG_BUCKETSIZE32,
00167 LEAKYBUCKETCONFIG_BUCKETSIZE64,
00168 LEAKYBUCKETCONFIG_FILLVALUE32,
00169 LEAKYBUCKETCONFIG_FILLVALUE64,
00170 LEAKYBUCKETCONFIG_EVENTSEVERITY,
00171 LEAKYBUCKETCONFIG_REFCOUNT,
00172 LEAKYBUCKETCONFIG_STATUS,
00173
00174 GENERICCONTROL_MONITORTYPE,
00175 GENERICCONTROL_MONITORUUID,
00176
00177 GENERICCONTROL_MONITORLOCATION,
00178 GENERICCONTROL_DATACAPTURE,
00179 GENERICCONTROL_MONITORLIFE,
00180 GENERICCONTROL_MONITORRATE,
00181 GENERICCONTROL_MONITORMICRORATE,
00182 GENERICCONTROL_THRESHOLDID,
00183 GENERICCONTROL_LEAKYBUCKETID,
00184 GENERICCONTROL_REFCOUNT,
00185 GENERICCONTROL_STATUS,
00186
00187
00188 THRESHOLDCONTROL_TOLERANCE32,
00189 THRESHOLDCONTROL_TOLERANCE64,
00190 THRESHOLDCONTROL_SAMPLETIME,
00191 THRESHOLDCONTROL_LOGRATE,
00192 THRESHOLDCONTROL_REFCOUNT,
00193 THRESHOLDCONTROL_STATUS,
00194
00195
00196 LEAKYBUCKETCONTROL_LOGGINGRATE,
00197 LEAKYBUCKETCONTROL_REFCOUNT,
00198 LEAKYBUCKETCONTROL_STATUS,
00199
00200 MONITOR_UUID,
00201 MONITOR_CONTROLID,
00202 MONITOR_CONFIGID,
00203 MONITOR_LOCATION,
00204 MONITOR_TYPE,
00205 MONITOR_STATUS,
00206 MONITOR_NOTIFICATIONPAUSED,
00207 MONITOR_SUBSYSTEMID,
00208 MONITOR_SUBSYSTEMUUID,
00209 MONITOR_RESORUCEID,
00210 MONITOR_STATISTICID,
00211 MONITOR_LASTVALUE32,
00212 MONITOR_LASTVALUE64,
00213 MONITOR_STARTTIME,
00214 MONITOR_STOPTIME,
00215 MONITOR_THRESHOLDLASTEVENTTIME,
00216 MONITOR_WATERMARKHIGHTIME,
00217 MONITOR_WATERMARKLOWTIME,
00218 MONITOR_WATERMARKHIGH32,
00219 MONITOR_WATERMARKHIGH64,
00220 MONITOR_WATERMARKLOW32,
00221 MONITOR_WATERMARKLOW64,
00222 MONITOR_LEAKYBUCKETLEVEL32,
00223 MONITOR_LEAKYBUCKETLEVEL64,
00224 MONITOR_LEAKYBUCKETLASTEVENTTIME,
00225 MONITOR_COMMAND,
00226 MONITOR_SNMPTRAP,
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237 EVENTQUERY_STRING,
00238 EVENTQUERY_PURPOSE,
00239 EVENTQUERY_REFCOUNT,
00240 EVENTQUERY_STATUS,
00241
00242 EVENTNOTIFICATION_QUERYID,
00243 EVENTNOTIFICATION_ONCEONLY,
00244 EVENTNOTIFICATION_TRAPGENERIC,
00245 EVENTNOTIFICATION_STATUS,
00246
00247 EVENTHANDLER_COMMAND,
00248 EVENTHANDLER_USER,
00249 EVENTHANDLER_REFCOUNT,
00250 EVENTHANDLER_STATUS,
00251
00252 EVENTACTION_QUERYID,
00253 EVENTACTION_HANDLER,
00254 EVENTACTION_TYPE,
00255 EVENTACTION_STATUS,
00256
00257 EVENTLOG_DEFAULTQUERY,
00258 EVENTLOG_DEFAULTFILE,
00259 EVENTLOG_SIZE,
00260 EVENTLOG_FORMAT,
00261 EVENTLOG_TYPE,
00262 EVENTLOG_FACILITY,
00263 EVENTLOG_SEVERITY,
00264 EVENTLOG_UID,
00265 EVENTLOG_GID,
00266 EVENTLOG_PID,
00267 EVENTLOG_PGID,
00268 EVENTLOG_TIMESTAMP,
00269 EVENTLOG_FLAG,
00270 EVENTLOG_THREAD,
00271 EVENTLOG_PROCESSOR,
00272 EVENTLOG_STRING,
00273 EVENTLOG_BINARY,
00274
00275 SUBSYSTEMINFO_NAME,
00276 SUBSYSTEMINFO_DESCRIPTION,
00277 SUBSYSTEMINFO_UUID,
00278 SUBSYSTEMINFO_RESOURCECOUNT,
00279 SUBSYSTEMINFO_STATISTICCOUNT,
00280
00281 RESORUCEINFO_NAME,
00282 RESOURCEINFO_DESCRIPTION,
00283 RESOURCEINFO_SUBSYSTEMUUID,
00284 RESOURCEINFO_RESOURCEID,
00285 RESOURCEINFO_SUBSYSTEMID,
00286
00287 STATISTICINFO_NAME,
00288 STATISTICINFO_DESCRIPTION,
00289 STATISTICINFO_UNITS,
00290 STATISTICINFO_SUBSYSTEMUUID,
00291 STATISTICINFO_SUBSYSTEMID,
00292 STATISTICINFO_RESOURCEID,
00293 STATISTICINFO_ID,
00294 STATISTICINFO_TYPE,
00295 STATISTICINFO_SIZE,
00296 STATISTICINFO_SCALE,
00297
00298 STATISTICINFO_COUNTERRESET,
00299 STATISTICINFO_COUNTERRESETVALUE32,
00300 STATISTICINFO_COUNTERRESETVALUE64,
00301 STATISTICINFO_GAUGEUPPERBOUND32,
00302 STATISTICINFO_GAUGEUPPERBOUND64,
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313 DATACAPTUREPLUGININFO_UUID,
00314 DATACAPTUREPLUGININFO_NAME
00315 } RMAttribute;
00316
00317 #endif // __rmClientTypes_h
00318