SYS.Monitor.Health.SensorObject
Class SYS.Monitor.Health.SensorObject Extends (%Persistent, %XML.Adaptor) [ ClassType = persistent, ProcedureBlock, System = 3 ]
Storage for Health Monitor Sensors. Each Sensor may have multiple Charts attached (for different time Periods) to evaluate when a Sensor deviates from 'normal' values.
Properties
Sensor
Property Sensor As %String [ Required ];
Threshold
Property Threshold As %String [ InitialExpression = 0 ];
AlertValue
Property AlertValue As %String [ InitialExpression = 0 ];
MaxMult
Property MaxMult As %String [ InitialExpression = 0 ];
WarnValue
Property WarnValue As %String [ InitialExpression = 0 ];
WarnMult
Property WarnMult As %String [ InitialExpression = 0 ];
Charts
Relationship Charts As SYS.Monitor.Health.Chart [ Cardinality = many, Inverse = SensorObject ];
Container Group
Methods
%OnNew
Method %OnNew(Sensor As %String, Threshold As %Integer = 0, MaxVal As %Integer = 0, MaxMult As %Integer = 0, WarnVal As %Integer = 0, WarnMult As %Integer = 0) As %Status
Set the Sensor properties. WarnValue and WarnMult are optional. If present, there must also be a corresponding AlertValue or MaxMult
%OnValidateObject
Method %OnValidateObject() As %Status