SYS.History.Daily
Class SYS.History.Daily Extends (%Persistent, %XML.Adaptor) [ System = 4 ]
This class is a Daily summary of the detail PerfData and SysData collections. For each class sample collected you may chose to have the Average, Maximum, Minimum, Median, Standard Deviation, and Total maintained for the day. By default Average, Maximum, and Standard Deviation are kept. Use the SetSummary method in each individual class (Performance, SystemUsage, etc.) to modify this. Performance counters (SYS.History.Performance) are normalized to a per-second rate for all the calculations.
This data can be manually purged using the Purge() method.
For details, see History Monitor.
Properties
DateTime
Property DateTime As %TimeStamp [ SqlColumnNumber = 2 ];
Time of summary
PerfCount
Property PerfCount As %Integer;
Number of Performance samples in this Daily period
SysCount
Property SysCount As %Integer;
Number of SystemUsage samples in this Daily period
WDCount
Property WDCount As %Integer;
Number of WriteDaemon cycles in this Daily period
Perf
Property Perf As array Of SYS.History.Performance;
Performance metrics
WD
Property WD As array Of SYS.History.WriteDaemon;
WriteDaemon metrics
Sys
Property Sys As array Of SYS.History.SystemUsage;
System Usage metrics
DB
Property DB As array Of SYS.History.Database;
Database metrics
ZDATE
Property ZDATE As %Integer;
UTC date key
ZTIME
Property ZTIME As %Integer;
UTC time key
Methods
Purge
ClassMethod Purge(Date As %String) As %Integer
Purge Summary data. Purge all days prior to the 'Date' parameter (in YYYY-MM-DD format). Returns the number of days purged.
Export
ClassMethod Export(FileName As %String, Start As %TimeStamp, End As %TimeStamp, Class As %String, Function As %String, Database As %String) As %Status
Export Daily data for a time range in CSV format. The default is all of the Perf, Sys and WD data currently in the Daily class.
The default FileName is HistoryDay_config_date_time.csv in the MGR directory.
'Start' and 'End' times (if necessary) are in YYYY-MM-DD HH:MM:SS format.
'Class' can be a comma-delimited list one or more of these classes of metrics: "Perf", "Sys", "WD". Or it can be "DB" to select the Database properties. The Database class can not be mixed with the other classes since it uses a different key structure to accommodate multiple databaes.
'Function' can be a comma-delimited list one or more of these summary functions: "Avg", "Max", "Min", StDev", Med" or "Tot". The default is to include all summary functions.
'Database' can be used to select a specific database (by name). Only used if "DB" is selected in 'Class'