Writing Monitors for the Event Monitoring Service (December 1999)
Chapter 3 101
Creating a Resource Monitor
Processing a Monitor Request Event
RmPolling
Interval
ubit32 Specifies in seconds how often
rm_get_next_event() generates
an RM_RESOURCE_UPDATE_EVENT.
This event signals the resource monitor
that it should check whether the value
of the resource meets the notification
criteria. If it determines how often
notification messages are sent.
For resources where RmStateType is
RM_ASYNCHRONOUS, the polling
interval should be 0, which means that
polling is not supported. When
RmStateType is RM_STATE, the
minimum polling interval is 1.
Valid values are 0-86,400 seconds (24
hours). The default value is 30.
RmPolling
Minimum
ubit32 If the RmMonitorReply is
RM_POLLTIME, the monitor can use
this field to provide the minimum
supported polling interval.
RmResourceName char * A pointer to a null-terminated string of
up to 256 characters that identifies the
resource instance. The
RmResourceName contains the full
path name of the resource instance. See
the section, “The Resource Dictionary”
for more details.
When the Subclass Reply object is
created, the RmResourceName field is
set to the same value that was specified
by the client application in the Subclass
Request object.
Table 3-6 Monitor Reply Object Fields
Field Name Type Description