%Monitor.System.HistoryPerf
Class %Monitor.System.HistoryPerf Extends %Monitor.System.Adaptor [ System = 4 ]
%Monitor class to collect and manage part of the Monitor History Database. This class collects the SYS.History.PerfData samples for the Performance Metrics, as defined in the Performance and WriteDaemon classes, at short intervals (default of 30 seconds).
By default the SYS.History.PerfData collection is kept for 7 days and then purged. The number of days to keep may be modified using SYS.History.PerfData:SetPurge() The Detail 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.
Properties
Day
Property Day As %Integer [ Internal ];
Keep track of last date to see of it's time to purge/summarize
Plist
Property Plist As %String [ Internal ];
Maintain a list of Performance properties for calculating deltas
Last
Property Last As SYS.History.PerfData [ Internal ];
Keep a copy of the last PerfData sample for calculating deltas
User
Property User As %RegisteredObject [ Internal ];
Keep a copy of the last UserPerf sample for calculating deltas
CtrList
Property CtrList As array Of %List [ Internal ];
Keep a list of properties for 'counter' type user classes
Length
Property Length As %Monitor.Integer;
Length of last sample
Status
Property Status As %Monitor.String;
Status of last sample
Errors
Property Errors As %Integer [ Internal ];
Keep count of consecutive errors
Methods
Startup
Method Startup() As %Status
Initialize property values
GetSample
Method GetSample() As %Status
Get the basic SYS.History.PerfData 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).