persistent class %Monitor.ItemGroup
extends %Persistent, %XML.Adaptor
Monitor Class definition
property Activated
as %Boolean [ InitialExpression = 0 ];
Flag indicating if this item is activated for sampling
relationship Application
as %Monitor.Application [ Inverse = ItemGroup,Cardinality = parent ];
The application definition for this group
property ApplicationName
as %String(TRUNCATE=1) [ Required ];
Name of application for this table
property Description
as %String(MAXLEN=132,TRUNCATE=1);
User specified description of this table
property GroupName
as %String(TRUNCATE=1) [ Required ];
Name of this table
property Index
as %String(MAXLEN=132,TRUNCATE=1);
Comma separated list of index fields for this table
relationship Items
as %Monitor.Item [ Inverse = ItemGroup,Cardinality = children ];
Columns for this table
property KeepHistory
as %Boolean [ InitialExpression = 0 ];
Flag indicating if this item maintains a history
property MetricsClassName
as %String(MAXLEN=250,TRUNCATE=1) [ Required ];
Cache classname for the metrics class
property Namespace
as %String(MAXLEN=256);
Namespace in which the cache class definition resides
property SampInterval
as %Integer [ InitialExpression = 0 ];
Sample interval for the sample class
property SampleClassName
as %String(MAXLEN=250) [ Required ];
Cache classname for the sample class
classmethod MetricsClassItemGroup(mclass As %String, ByRef id As %String)
as %Status
Returns %ID for the ItemGroup for a Metrics Class
query ActiveItemGroups()
SQL Query
:
SELECT %ID FROM ItemGroup
WHERE (Activated = 1)
Get the names of active itemgroups
query ApplicationItemGroups(app As %String)
SQL Query
:
SELECT %ID, GroupName FROM ItemGroup
WHERE (Application->Name = :app)
Get itemgroups for an application
query Classes()
SQL Query
:
SELECT MetricsClassName,Activated,SampInterval FROM ItemGroup
Get the class names of all the itemgroups
query Groups()
SQL Query
:
SELECT GroupName FROM ItemGroup
Get the group names of all the itemgroups
query ItemGroups()
SQL Query
:
SELECT %ID FROM ItemGroup
Get all itemgroups in the system
index (IDKEY on MetricsClassName) [IdKey,PrimaryKey,Unique];