Once created, the MonitoredItem will raised an "samplingEvent" event every "samplingInterval" millisecond
until {{#crossLink "MonitoredItem/terminate:method"}}{{/crossLink}} is called.
It is up to the event receiver to call {{#crossLink "MonitoredItem/recordValue:method"}}{{/crossLink}}.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error' listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error' event is emitted, therefore the process will still crash if no
regular 'error' listener is installed.
Static maximumSamplingInterval
maximumSamplingInterval:number = 1000 * 60 * 60
Static minimumSamplingInterval
minimumSamplingInterval:number = 50
Static registry
registry:ObjectRegistry = new ObjectRegistry()
Accessors
hasMonitoredItemNotifications
get hasMonitoredItemNotifications(): boolean
Returns boolean
isSampling
get isSampling(): boolean
Returns boolean
node
get node(): BaseNode | null
set node(someNode: BaseNode | null): void
Returns BaseNode | null
Parameters
someNode: BaseNode | null
Returns void
Methods
addListener
addListener(event: string | symbol, listener: function): this
a server side monitored item
Once created, the MonitoredItem will raised an "samplingEvent" event every "samplingInterval" millisecond until {{#crossLink "MonitoredItem/terminate:method"}}{{/crossLink}} is called.
It is up to the event receiver to call {{#crossLink "MonitoredItem/recordValue:method"}}{{/crossLink}}.