persistent class %Monitor.Item
extends %Persistent, %XML.Adaptor
A single managed data object.
property Activated
as %Boolean [ InitialExpression = 1 ];
Flag indicating if this item is activated for sampling
property Description
as %String(MAXLEN=132,TRUNCATE=1);
A text description of this data object.
property GetMethod
as %String(TRUNCATE=1);
Method used to fetch the value of this data object.
relationship ItemGroup
as %Monitor.ItemGroup [ Inverse = Items,Cardinality = parent ];
Container Group
property MaxLen
as %Integer;
Maximum length for a string.
property MaxVal
as %Integer;
Maximum value for an integer.
property MinLen
as %Integer;
Minimum length for a string.
property MinVal
as %Integer;
Minimum value for an integer.
property Monitor
as %Boolean [ InitialExpression = 0 ];
Monitor this data object.
property Name
as %String(TRUNCATE=1);
The name of this data object
property Type
as %String;
The data type for this data object.
query Items(itemgroupid As %String)
SQL Query
:
SELECT %ID FROM Item
WHERE (ItemGroup->ID = :itemgroupid)
Get items for an itemgroup
query ItemsList(itemgroupid As %String)
SQL Query
:
SELECT Name,Activated FROM Item
WHERE (ItemGroup->ID = :itemgroupid)
Get the property names of all the items
query MonitoredItems()
SQL Query
:
SELECT %ID FROM Item
WHERE (Monitor = 1)
Get item definitions for monitored items
index (IDKEY on Name) [IdKey,PrimaryKey,Unique];