Skip to main content

HS.HC.InstanceConfig.Resource.EventCache

class HS.HC.InstanceConfig.Resource.EventCache extends HS.REST.Model.Resource

This RESTHandler provides the EventLog endpoints each namespace that logs events. The '/$changes' endpoint is polled periodically by the central log to aggregate events from all namespaces

Method Inventory

Parameters

parameter MEDIATYPE = application/vnd.intersystems.com.hs.sys.event-cache.v1+json;
Inherited description: Content-Type implemented in this class Subclasses MAY override this
parameter RESOURCENAME = $$$ResourceEventCache;
Name of the resource at the REST level Subclasses MUST override this
parameter SecurityResourceName = %HSAdmin_EventLogManagement;

Methods

classmethod CheckPermission(pID As %String, pOperation As %String, pUserContext As %RegisteredObject, ByRef URLParams) as %Boolean
Checks the user's permission for a particular operation on a particular record. pOperation may be one of: CREATE, READ, UPDATE, DELETE, QUERY, ACTION: pUserContext is supplied by GetUserContext()
classmethod getChanges(params As %DynamicObject) as %DynamicObject
REST API
url: GET /changes
Input JSON properties
  • - Specifies that, at most, entries be returned (default=1000)
  • after - Specifies that the result include the next sequential entries after
  • mrn - Specifies that the result be limited to changes in the specified (default all mrn's)
  • timeout - Specifies how many seconds the request will wait before returning with no data.
classmethod setTraceMode(state As %DynamicObject)

Inherited Members

Inherited Methods

FeedbackOpens in a new tab