Writing Monitors for the Event Monitoring Service (December 1999)
112 Chapter3
Creating a Resource Monitor
Processing a Resource Update Event
RmResourceType rm_option
_type
Specifies the type of the resource, as
defined by the resource monitor. Valid
values are as follows:
RM_STRING_TYPE
RM_ENUMERATED_TYPE
RM_SBIT32_TYPE
RM_UBIT32_TYPE
RM_FLOAT64_TYPE
RM_ERROR_TYPE
If the subclass registrar state type was
valid, this value should be the same as
that supplied in the Subclass Reply
object, unless an error occurs in
determining the current value of the
resource. If an error occurs, the
resource monitor should set this field
to RM_ERROR_TYPE. A notification
message will always be generated if
the RmResourceType is
RM_ERROR_TYPE.
The rm_notify() function will use
the RmResourceType to determine
how to compare the current
RmResourceValue with the
RmThresholdValue. Therefore,
RmResourceType must always be
set before RmResourceValue.
Table 3-7 Resource Update Object Fields
Field Name Type Description