Skip to main content

SYS.WSMon.EventSink

Class SYS.WSMon.EventSink Extends %SOAP.WebService

This is an example of a CacheEventSink Web service which can receive alerts from any InterSystems IRIS instance. Users should follow the WSDL generated from this class to create their own CacheEventSink Web method. Then register it using SYS.WSMon.Service.EventSubscribe() to "subscribe" to all alerts from each InterSystems IRIS instance.

The "alerts" would be the same events as those sent via SNMP, including all relevant alerts from messages.log (and the System Monitor). See the SYS.WSMon.wsEvent class for details on the properties included with each alert.

Parameters

SERVICENAME

Parameter SERVICENAME = "CacheEventSink";

Name of the WebService.

NAMESPACE

Parameter NAMESPACE = "http://www.intersystems.com/cache/wsmon/1";

SOAP Namespace for the WebService

USECLASSNAMESPACES

Parameter USECLASSNAMESPACES = 1;

Namespaces of referenced classes will be used in the WSDL.

Methods

CacheEventSink

Method CacheEventSink(event As SYS.WSMon.wsEvent) As %Integer [ SoapAction = "http://www.intersystems.com/cache/wsmon/1/SYS.WSMon.CacheEventSink", WebMethod ]

Example service for a CacheEventSink