Writing Monitors for the Event Monitoring Service (December 1999)
120 Chapter3
Creating a Resource Monitor
Processing an Unregister Event
Object fields.
Table 3-9 Unregister Object Fields
Field Name Type Description
RmLifetime
Option
ubit32 Determines how long this monitor request
should last if it is accepted.
Valid values are:
RM_NON_PERSISTENT_REQUEST
The monitor request should exist as long
as the resource monitor exists (or until a
client sends an Unregister Monitor
Request). If the resource monitor
process dies or if the system is rebooted,
the monitor request will vanish.
RM_PERSISTENT_REQUEST
EMS should store the monitor request to
disk. If the resource monitor process dies
or if the system is rebooted, EMS should
automatically re-register the request with
a new instance of the resource monitor.
The request will only be removed when a
client sends an Unregister Monitor
Request.
RM_PREVIEW_REGISTER
This is a request to verify monitoring
request parameters. It currently verifies
the polling interval and the resource
name. The monitor request is never
registered. This preview request only
exists for verification, which is complete
once the Monitor Reply has been sent. No
unregister request is needed. This should
be used only when RmOperationType
is RM_REGISTER.