Writing Monitors for the Event Monitoring Service (December 1999)
Chapter 3 81
Creating a Resource Monitor
Processing a Subclass Request Event
RmOVSeverity field to RM_OV_ENUMERATION.
The enumeration is an RM_OV_ENUMERATION if the values are used
to convey severity level of the event. The severity StateValues
have the following meaning:
1 - normal event
2 - warning event
3 - minor warning event
4 - major warning event
5 - critical event
• Send the message.
Subclass Objects
When a Subclass Request Event occurs the monitor receives a subclass
reply object. The object contains the fields described in Table 3-3. Write
the monitor to:
• read RmResourceName and RmStateType
• set RmResourceType, RmStateType (if necessary), RmOVSeverity (if
appropriate)
• for a resource class, create and attach SUBCLASS_CHILD_OBJECT
• for a resource instance, create and attach RESOURCE_STATE_OBJECT