Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / %Monitor.System.HistoryUser
Private  Storage   

%Monitor.System.HistoryUser


class %Monitor.System.HistoryUser extends
%Monitor.System.Adaptor

%Monitor class to collect and manage part of the Monitor History Database. This class collects the SYS.History.User samples for the user-defined metrics. See the SYS.History.Adaptor class for more details on how to create user-defined metrics.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
6 2


Summary


Properties
CtrList Day Errors Length Status
User

Methods
%%OIDGet %AddToSaveSet %BindExport %BuildObjectGraph
%ClassIsLatestVersion %ClassName %Close %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IncrementCount %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject GetSample Initialize Shutdown
Startup


Properties


• property CtrList as array of %List;
Keep a list of properties for 'counter' type classes
• property Day as %Integer;
Keep track of last date to see of it's time to purge/summarize
• property Errors as %Integer;
Keep count of consecutive errors
• property Length as %Monitor.Integer;
Length of last sample
• property Status as %Monitor.String;
Status of last sample
• property User as %RegisteredObject;
Keep a copy of the last sample for calculating deltas

Methods


• method GetSample() as %Status
Get the basic SYS.History.User sample for the Monitor History Database. This method also handles purging and accumulation of the Interval metrics into the long term database (SYS.History.UserHourly and SYS.History.UserDaily).
• method Startup() as %Status
Initialize property values