Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%Net] >  [Remote] >  [ActivityLog]
Private  Storage   

persistent class %Net.Remote.ActivityLog extends %Persistent

Recent activity log for Object Gateway Servers.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
8 1 3 2


Summary

Properties
DateTime GatewayName GatewayType Job Port
RecordType Server Text

Methods
%AddToSaveSet %AddToSyncSet %BMEBuilt %CheckConstraints
%CheckConstraintsForExtent %ClassIsLatestVersion %ClassName %ComposeOid
%ConstructClone %Delete %DeleteExtent %DeleteId
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Exists
%ExistsId %Extends %GUID %GUIDSet
%GetLock %GetParameter %GetSwizzleObject %Id
%InsertBatch %IsA %IsModified %IsNull
%KillExtent %KillExtentData %LoadFromMemory %LockExtent
%LockId %New %NormalizeObject %ObjectIsNull
%ObjectModified %Oid %OnBeforeAddToSync %OnDetermineClass
%Open %OpenId %OriginalNamespace %PackageName
%PhysicalAddress %PurgeIndices %Reload %RemoveFromSaveSet
%ResolveConcurrencyConflict %RollBack %Save %SaveDirect
%SaveIndices %SerializeObject %SetModified %SortBegin
%SortEnd %SyncObjectIn %SyncTransport %UnlockExtent
%UnlockId %ValidateIndices %ValidateObject Purge


Properties

• property DateTime as %TimeStamp;
• property GatewayName as %String;
• property GatewayType as %String;
• property Job as %String;
• property Port as %String;
• property RecordType as %String(DISPLAYLIST=",Debug,Info,Warning,Error",VALUELIST=",0,1,2,3");
• property Server as %String;
• property Text as %String(MAXLEN="");

Methods

• classmethod Purge(pDays As %Integer = 7, Output pDeleted As %Integer) as %Status
Purge Gateway activity log records older than a given number of days (default 7 days).

Queries

• query ByDateTime(ts1 As %TimeStamp = "1900-01-10", ts2 As %TimeStamp = "2030-01-10")
Selects ID, DateTime, GatewayName, GatewayType, RecordType, Job, Text
SQL Query :
SELECT %ID, DateTime, GatewayName, %EXTERNAL(GatewayType) As Type, %EXTERNAL(RecordType) As RecordType, Job, Text
FROM ActivityLog
WHERE DateTime >= :ts1 AND DateTime <= :ts2
ORDER BY %ID DESC
Lookup all Gateways by DateTime range.
• query ByName(name As %String)
Selects ID, DateTime, RecordType, Job, Text
SQL Query :
SELECT %ID, DateTime, RecordType, Job, Text
FROM ActivityLog
WHERE GatewayName = :name
ORDER BY %ID DESC
Lookup by Gateway Name.
• query ByNameDateTime(name As %String, ts1 As %TimeStamp = "1900-01-10", ts2 As %TimeStamp = "2030-01-10")
Selects ID, DateTime, RecordType, Job, Text
SQL Query :
SELECT %ID, DateTime, RecordType, Job, Text
FROM ActivityLog
WHERE GatewayName = :name AND DateTime >= :ts1 AND DateTime <= :ts2
ORDER BY %ID DESC
Lookup by Gateway Name and DateTime range.

Indices

•index (NameTSIndex on GatewayName,DateTime);
•index (TSIndex on DateTime);


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.