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

%Monitor.System.HistorySys


class %Monitor.System.HistorySys extends
%Monitor.System.Adaptor

%Monitor class to collect and manage part of the Monitor History Database. This class collects the SYS.History.SysData samples for the System Usage Metrics, as defined in the Usage and Database classes, at somewhat longer intervals than the History class (default of 5 minutes).

By default the SysData collection is kept for 7 days and then purged. The number of days to keep may be modified using SYS.History.PerfData:SetPurge() The SysData samples can be automatically rolled up at the end of each day into Hourly (SYS.History.Hourly) or Daily (SYS.History Daily) summaries, which can be kept for longer periods.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
7 2


Summary


Properties
CtrList Day Errors Last 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 user 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 Last as SYS.History.SysData;
Keep a copy of the last PerfData sample for calculating deltas
• 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 UserSys sample for calculating deltas

Methods


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