Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [Ens] >  [MetricModel]
Private  Storage   

class Ens.MetricModel extends %ZEN.DataModel.DataModel

This is a ZEN MVC DataModel class that adapts the data collected by a Business Metric service for use in a ZEN MVC page.
This model is read-only.
For a dataController to connect to Business Metric:
Its modelClass property should be set to "Ens.MetricModel"
Its modelId should be set the configuration name of the Business Metric.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 10


Summary

Properties
%id %seriesCount %seriesNames

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%CopyDataToModel %DeleteModel %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Extends %GetParameter %GetPropertyInfo
%InvokeAction %IsA %IsModified %IsReadOnly
%New %NormalizeObject %ObjectModified %OnDeleteModel
%OnDeleteSource %OnGetPropertyInfo %OnInvokeAction %OnLoadModel
%OnNewSource %OnOpenSource %OnSaveSource %OnStoreModel
%OnSubmit %OpenModel %OriginalNamespace %PackageName
%RemoveFromSaveSet %SaveModel %SerializeObject %SetModified
%SubmitHandler %ValidateObject


Parameters

• parameter READONLYMODEL = 1;
Metric models are read-only.

Methods

• method %CopyDataToModel(ByRef pData, pSeries As %Integer = "") as %Status
Internal method.
• classmethod %DeleteModel(pID As %String) as %Status
Delete a given DataModel instance.
• final classmethod %GetPropertyInfo(Output pInfo As %String, pExtended As %Boolean = 0, pModelId As %String = "", pContainer As %String = "") as %Status
Return an array, subscripted by property name, describing the properties within this DataModel.
These are returned as an array of the form:
pInfo(name) = seqno
If pExtended is true (1), then the array will include additional nodes for each property. This information is used to create dynamic forms for this model.
Applications should not change this method.
• method %OnLoadModel(pSource As %RegisteredObject) as %Status
This callback method does the actual work of loading values from the data source into this DataModel object.
• final classmethod %OpenModel(pID As %String, pConcurrency As %Integer = -1, Output pSC As %Status = $$$OK) as %RegisteredObject
Open and return an instance of this DataModel object (given an id value pID and fill in its property values.
pID will be the name of the Business Metric that will provide the data.
• final method %SaveModel() as %Status
Save the values currently within this DataModel object back to a data source.


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.