Home > Class Reference > %SYS namespace > SYS.Monitor.SAM.Config


persistent class SYS.Monitor.SAM.Config extends %Library.Persistent

SQL Table Name: SYS_Monitor_SAM.Config

Configuration parameters for SAM (System Alerting and Monitoring).

This controls behavior of the SYS.Monitor.SAM.Sensors collector class.

Property Inventory (Including Private)

Method Inventory (Including Private)


parameter METRICGROUPS = Performance,Mirrors,Database,CPU,CSPGateway,Journal,License,Memory,Process,Shadows,Transactions,SharedMemory,WriteDemon,Diagnostic;

Properties (Including Private)

property ExcludeMetrics as %List;
A list of Sensor Groups to omit from each collection.

Valid values are Performance, Mirrors, Database, CPU, CSPGateway, Journal, License, Memory, Process, Shadows, Transactions, SharedMemory, WriteDemon and Diagnostic

To update: set sam=##class(SYS.Monitor.SAM.Config).Open(),sam.ExcludeMetrics=$lb("Shadows","Transactions") do sam.%Save()
Property methods: ExcludeMetricsGet(), ExcludeMetricsGetStored(), ExcludeMetricsIsValid(), ExcludeMetricsLogicalToOdbc(), ExcludeMetricsOdbcToLogical(), ExcludeMetricsSet()
property Key as %String [ InitialExpression = "SAM" , Required ];
Property methods: KeyDisplayToLogical(), KeyGet(), KeyGetStored(), KeyIsValid(), KeyLogicalToDisplay(), KeyLogicalToOdbc(), KeyNormalize(), KeySet()

Methods (Including Private)

method %OnValidateObject() as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %ValidateObject() method to provide notification that the current object is being validated.

If this method returns an error then %ValidateObject() will fail.

classmethod AddApplicationClass(ClassName As %String, Namespace As %String) as %Status [ Language = objectscript ]
Add an Application class name to be called during each SAM collection. The class must inherit from %SYS.Monitor.SAM.Abstract and implement the GetSensors() method.
classmethod CreateWebApp() as %Status [ Language = objectscript ]
Create /api/monitor REST API
classmethod DeleteApplicationClass(ClassName As %String) as %Status [ Language = objectscript ]
Remove an Application class name from the list to be called during each SAM collection.
classmethod ExportAPI(errors As %String) as %Status [ Language = objectscript ]
Export all source code to enable Prometheus API on older versions Creates SAM.XML in current directory. Returns status a list of 'errors'. Use Do $System.OBJ.Load("SAM.xml","ck") to import.


index (Single on Key) [IdKey, Type = key, Unique];
Index methods: SingleCheck(), SingleDelete(), SingleExists(), SingleOpen(), SingleSQLCheckUnique(), SingleSQLExists(), SingleSQLFindPKeyByConstraint(), SingleSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods (Including Private)


Storage Model: Storage (SYS.Monitor.SAM.Config)