Skip to main content

SYS.Stats.Manager

Class SYS.Stats.Manager Extends (%RegisteredObject, %XML.Adaptor) [ Inheritance = right, System = 4 ]

Methods for controlling and exporting the system metrics as a group.

Methods

ExportXML

ClassMethod ExportXML(FileName As %String = "IRISMetrics.xml") As %Status

Export all current values for SYS.Stats Classes as an XML file.

Server

ClassMethod Server(File As %String, Interval As %Integer = 300) As %Status

Entry point for background job. Call ExportXML() in a loop, writing to file at specifed interval (in seconds).

Job

ClassMethod Job(File As %String, Interval As %Integer) As %String

Start a background job to export XML metrics periodically. Calls SYS.Stats.Manager.Server() as job entry point. Returned value is ID of child process if successful, or "0" if not.

StopJob

ClassMethod StopJob() As %Status

Stop the background XML Export job.