%Monitor.System.HistoryUser
Class %Monitor.System.HistoryUser Extends %Monitor.System.Adaptor [ System = 4 ]
%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.
Properties
Day
Property Day As %Integer [ Internal ];
Keep track of last date to see of it's time to purge/summarize
User
Property User As %RegisteredObject [ Internal ];
Keep a copy of the last sample for calculating deltas
CtrList
Property CtrList As array Of %List [ Internal ];
Keep a list of properties for 'counter' type 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.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).