Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / %SYS namespace / %SYS.Monitor.SensorReading
Private  Storage   

%SYS.Monitor.SensorReading


Persistent class for SystemSensor readings. Only used when Debug is enabled.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
4 1 2


Summary


Properties
Item Reading SampleTime Sensor

Methods
%AddToSaveSet %AddToSyncSet %BMEBuilt %BuildIndicesAsync
%BuildIndicesAsyncResponse %CheckConstraints %CheckConstraintsForExtent %ClassIsLatestVersion
%ClassName %ComposeOid %ConstructClone %Delete
%DeleteExtent %DeleteId %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Exists %ExistsId %Extends
%GUID %GUIDSet %GetLock %GetParameter
%GetSwizzleObject %Id %InsertBatch %IsA
%IsModified %IsNull %KillExtent %KillExtentData
%LoadFromMemory %LockExtent %LockId %New
%NormalizeObject %ObjectIsNull %ObjectModified %Oid
%OnBeforeAddToSync %OnDetermineClass %Open %OpenId
%OriginalNamespace %PackageName %PhysicalAddress %PurgeIndices
%Reload %RemoveFromSaveSet %ResolveConcurrencyConflict %RollBack
%Save %SaveDirect %SaveIndices %SerializeObject
%SetModified %SortBegin %SortEnd %SyncObjectIn
%SyncTransport %UnlockExtent %UnlockId %ValidateIndices
%ValidateObject Purge


Properties


• property Item as %String(MAXLEN=250);
Sensor item
• property Reading as %String(MAXLEN=1024);
Reading
• property SampleTime as %String [ Required ];
Date/Time of sample
• property Sensor as %String(MAXLEN=250) [ Required ];
Name of sensor

Methods


• classmethod Purge(Time As %String) as %Status
Purge old readings, upt to . Date is in $h format.

Queries


• query SensorReadings(BeginTime As %String, EndTime As %String)
SQL Query :
SELECT *
FROM SensorReading
WHERE SampleTime BETWEEN :BeginTime AND :EndTime
Return the sensor data for a given time range
• query SensorReadingsBySensor(BeginTime As %String, EndTime As %String, Sensor As %String)
SQL Query :
SELECT *
FROM SensorReading
WHERE SampleTime BETWEEN :BeginTime AND :EndTime
AND Sensor = :Sensor
Return the alert(s) for a given sensor