MonitoringAlert Class
Applies To: Operations Manager for System Center 2012
Represents an Operations Manager monitoring alert. In Operations Manager, an alert is an item that indicates that a predefined situation has occurred on a monitored object. Alerts are defined by rules.
Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Inheritance Hierarchy
System.Object
Microsoft.EnterpriseManagement.Common.MonitoringBase
Microsoft.EnterpriseManagement.Monitoring.OperationalDataObject
Microsoft.EnterpriseManagement.Monitoring.MonitoringAlert
Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorMonitoringAlert
Syntax
[SerializableAttribute]
public class MonitoringAlert : OperationalDataObject
[SerializableAttribute]
public ref class MonitoringAlert : OperationalDataObject
[<SerializableAttribute>]
type MonitoringAlert =
class
inherit OperationalDataObject
end
<SerializableAttribute>
Public Class MonitoringAlert
Inherits OperationalDataObject
Properties
Name | Description | |
---|---|---|
Category | Gets the category of the alert. |
|
ClassId | ||
ConnectorId | Gets or sets the globally unique identifier (GUID) for the connector corresponding to the monitoring alert. |
|
ConnectorStatus | Gets the status of this alert relative to the connector. |
|
Context | Gets the context of the alert. |
|
CustomField1 | Gets or sets the value of the custom field 1 for the alert. |
|
CustomField10 | Gets or sets the value of the custom field 10 for the alert. |
|
CustomField2 | Gets or sets the value of the custom field 2 for the alert. |
|
CustomField3 | Gets or sets the value of the custom field 3 for the alert. |
|
CustomField4 | Gets or sets the value of the custom field 4 for the alert. |
|
CustomField5 | Gets or sets the value of the custom field 5 for the alert. |
|
CustomField6 | Gets or sets the value of the custom field 6 for the alert. |
|
CustomField7 | Gets or sets the value of the custom field 7 for the alert. |
|
CustomField8 | Gets or sets the value of the custom field 8 for the alert. |
|
CustomField9 | Gets or sets the value of the custom field 9 for the alert. |
|
Description | Gets the description of the alert. |
|
Id | Gets the globally unique identifier (GUID) for the alert.(Overrides OperationalDataObject.Id.) |
|
IsMonitorAlert | Gets a Boolean value that determines whether the alert was generated by a monitor. |
|
LastModified | Gets the last time, in DateTime format, that the alert was modified. |
|
LastModifiedBy | Gets the name of the user that last modified the alert. |
|
LastModifiedByNonConnector | Gets the last time, in DateTime format, the alert was modified by something other than a connector. |
|
MaintenanceModeLastModified | Gets the time, in DateTime format, that the maintenance mode of this alert was last modified. |
|
ManagementGroup | The connection management group connection used by this object.(Inherited from OperationalDataObject.) |
|
ManagementGroupId | (Inherited from MonitoringBase.) |
|
MonitoringClassId | Obsolete.Gets the globally unique identifier (GUID) of the non-abstract monitoring class of the associated monitoring object. |
|
MonitoringObjectDisplayName | Gets the display name of the monitoring object that is associated with the alert. |
|
MonitoringObjectFullName | Gets the full name of the monitoring object that is associated with the alert. |
|
MonitoringObjectHealthState | Gets the health state of the monitoring object associated with this alert. |
|
MonitoringObjectId | Gets the globally unique identifier (GUID) for the monitoring object that is associated with this alert.(Overrides OperationalDataObject.MonitoringObjectId.) |
|
MonitoringObjectInMaintenanceMode | Gets a value indicating whether the monitoring object associated with the alert is in maintenance mode. |
|
MonitoringObjectName | Gets the name of the monitoring object that is associated with this alert. |
|
MonitoringObjectPath | Gets the path to the monitoring object that is associated with this alert. |
|
MonitoringRuleId | Obsolete.Gets the globally unique identifier (GUID) for the rule associated with the alert.(Overrides OperationalDataObject.MonitoringRuleId.) |
|
Name | Gets the name of the alert. |
|
NetbiosComputerName | Gets the name of the computer that raised this alert. |
|
NetbiosDomainName | Gets the domain of the computer that raised this alert. |
|
Owner | Gets or sets the owner of the alert. |
|
Parameters | Gets a collection of parameters for the alert. |
|
PrincipalName | Gets the principal name of the computer that this alert was created for. |
|
Priority | Gets the priority of the alert. |
|
ProblemId | Gets the globally unique identifier (GUID) of the associated monitor if the IsMonitorAlert property is true, otherwise, gets or sets the GUID for the problem. |
|
RepeatCount | Gets the repeat count of this alert. |
|
ResolutionState | Gets the resolution state of the alert. |
|
ResolvedBy | Gets the user who resolved this alert. |
|
RuleId | (Overrides OperationalDataObject.RuleId.) |
|
Severity | Gets the severity of the alert. |
|
SiteName | Gets the site name of the alert. |
|
StateLastModified | Gets the time, in DateTime format, that the state of this alert was last modified. |
|
TicketId | Gets or sets a string identifier for the ticket of the alert. |
|
TimeAdded | Gets the time, in DateTime format, the alert was added to the system. |
|
TimeRaised | Gets the time, in DateTime format, the alert was raised. |
|
TimeResolutionStateLastModified | Gets the last time, in DateTime format, the resolution state of the alert was modified. |
|
TimeResolved | Gets the time, in DateTime format, the alert was resolved. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether this object is equal to the specified object.(Inherited from OperationalDataObject.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | Gets the hash code for the OperationalDataObject object(Inherited from OperationalDataObject.) |
|
GetMonitoringAlertHistory() | Gets a collection of MonitoringAlertHistory objects that contain the history for the alert. |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
Reconnect(EnterpriseManagementGroup) | Reconnects to the specified management group after the object has been disconnected.(Inherited from OperationalDataObject.) |
|
Refresh() | Refreshes the alert from the data store. |
|
ToString() | (Inherited from MonitoringBase.) |
|
Update(String) | Updates the alert and adds a comment about the update. |
|
Update(String, MonitoringConnector) | Updates the alert and adds a comment about the update, using the specified connector. |
Remarks
The MonitoringAlert class contains information about an alert in Operations Manager. Alerts are used to notify operators of problems. Alerts are driven by event processing rules or scripts. An alert tells you when something significant happened in one of your systems. You can monitor alerts to determine the significance of an alert and the corrective action to be taken.
Examples
The following example shows how to get the Windows computers in a Management Group and display the health state and number of alerts for each computer.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.EnterpriseManagement.Monitoring Namespace
Return to top