Home > Class Reference > %SYS namespace > %SYS.Ensemble

%SYS.Ensemble

abstract class %SYS.Ensemble

Method Inventory

Methods

classmethod CreateDocumentation(pProduction As %String = "", pIntro As %Boolean = 1, pFormat As %String, Output LogFileName As %String, Output URL As %String, Output BookName As %String, PDFFileName As %String, PDFRenderer As %String, ByRef Params As %String, pAllSettings As %Boolean = 0) as %Status [ Language = objectscript ]
Wrapper around the Ens.Util.Documentation::CreateDoc() API to ensure that users have sufficient privileges to add the resulting material to the documentation.
The parameter PDFRenderer is deprecated and is ignored.
The parameter pAllSettings defaults to 0 but if set to 1 all settings including default values for a host item will be included.
classmethod EnsembleUsername() as %String [ Language = objectscript ]
Correctly determine the expanded Interoperability manager username (used internallly and not for login) if the system is using multiple domains. If multiple domains are in use, then the Interoperability manager username should be present in the default domain.
classmethod GetEnsMetrics(pID As %String, pCount As %Integer, Output pValues, Output pStatus, Output pMsg, pInterval As %Numeric = 10) as %Status [ Language = objectscript ]
Wrapper around the SYS.EnsMetrics::GetMainMetrics() API to ensure that all users with USE permissions on %Ens_Dashboard can get this information even if they aren't permitted to directly run code in the system database.
classmethod GlobalInMirroredDB(pGlobal As %String = "", Output pMirrored As %Boolean) as %Status [ Language = objectscript ]
classmethod ListAlertingUsers(Output pUsers As %String, pLimitToNamespace As %String = "") as %Status [ Language = objectscript ]
This method is used by the portal page EnsPortal.ManagedAlertViewer

It returns a list of users who are members of the %EnsRole_AlertManager, %EnsRole_AlertOperator or %EnsRole_Alert roles.
If the role %EnsRole_Administrator has USE privilege on the %Ens_AlertAdministration resource then users of the role %EnsRole_Administrator will also be listed.
Users with %All role will not be listed unless they are explicitly members of one of the roles previously mentioned.
The default is to list all the users in the instance. Pass the namespace in the second parameter to limit the list to the user with write access to the Ens.Alerting.ManagedAlert data in a specific namespace.
A user must be permitted to edit alerts to call this API.
classmethod StartProduction(pProductionName As %String) as %Status [ Language = objectscript ]
Secure wrapper for the StartProduction API in Ens.Director.
classmethod StopProduction(pTimeout As %Numeric = 10, pForce As %Boolean = 0) as %Status [ Language = objectscript ]
Secure wrapper for the StopProduction API in Ens.Director.
classmethod UpdateProduction(pTimeout As %Numeric = 10, pForce As %Boolean = 0, pCalledByScheduleHandler As %Boolean = 0) as %Status [ Language = objectscript ]
Secure wrapper for the UpdateProduction API in Ens.Director.