Microsoft.EnterpriseManagement.Mom.Runtime Namespace

The Microsoft.EnterpriseManagement.Mom.Runtime namespace contains classes and other types for creating MOM managed code responses. The items in this namespace are defined in the MOM.Context (MOM.Context.dll) assembly.

Classes

Name Description

Context

The Context class is the root class for all managed code responses. It is used to access or create most of the other types of objects found in the Microsoft.EnterpriseManagement.Mom.Runtime namespace, such as alerts, events, and performance data.

ResponseTarget

The ResponseTarget class represents the computer where the response is executed. Rules can be configured to run on either the Management Server or an agent computer. The ResponseTarget class allows the code in the response to determine whether it is running on the Management Server or the agent computer.

RuntimeAlert

The RuntimeAlert class represents an alert that launched the current response. The RuntimeAlert is obtained through the Context.Alert property.

RuntimeEvent

The RuntimeEvent object is the internal representation MOM uses for entries collected from Windows NT Event logs, application log files, and other MOM data providers.

RuntimePerformanceData

Use the RuntimePerformanceData class to manipulate performance data provided by MOM through the Context.PerformanceData property.

State

The State class is used to retrieve and update parameter variables passed by the rule that is running the response.

VariableSet

The VariableSet class stores a group of variables that are globally accessible by all responses running in MOM.