次の方法で共有


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
System_CAPS_pubproperty Category

Gets the category of the alert.

System_CAPS_pubproperty ClassId

System_CAPS_pubproperty ConnectorId

Gets or sets the globally unique identifier (GUID) for the connector corresponding to the monitoring alert.

System_CAPS_pubproperty ConnectorStatus

Gets the status of this alert relative to the connector.

System_CAPS_pubproperty Context

Gets the context of the alert.

System_CAPS_pubproperty CustomField1

Gets or sets the value of the custom field 1 for the alert.

System_CAPS_pubproperty CustomField10

Gets or sets the value of the custom field 10 for the alert.

System_CAPS_pubproperty CustomField2

Gets or sets the value of the custom field 2 for the alert.

System_CAPS_pubproperty CustomField3

Gets or sets the value of the custom field 3 for the alert.

System_CAPS_pubproperty CustomField4

Gets or sets the value of the custom field 4 for the alert.

System_CAPS_pubproperty CustomField5

Gets or sets the value of the custom field 5 for the alert.

System_CAPS_pubproperty CustomField6

Gets or sets the value of the custom field 6 for the alert.

System_CAPS_pubproperty CustomField7

Gets or sets the value of the custom field 7 for the alert.

System_CAPS_pubproperty CustomField8

Gets or sets the value of the custom field 8 for the alert.

System_CAPS_pubproperty CustomField9

Gets or sets the value of the custom field 9 for the alert.

System_CAPS_pubproperty Description

Gets the description of the alert.

System_CAPS_pubproperty Id

Gets the globally unique identifier (GUID) for the alert.(Overrides OperationalDataObject.Id.)

System_CAPS_pubproperty IsMonitorAlert

Gets a Boolean value that determines whether the alert was generated by a monitor.

System_CAPS_pubproperty LastModified

Gets the last time, in DateTime format, that the alert was modified.

System_CAPS_pubproperty LastModifiedBy

Gets the name of the user that last modified the alert.

System_CAPS_pubproperty LastModifiedByNonConnector

Gets the last time, in DateTime format, the alert was modified by something other than a connector.

System_CAPS_pubproperty MaintenanceModeLastModified

Gets the time, in DateTime format, that the maintenance mode of this alert was last modified.

System_CAPS_pubproperty ManagementGroup

The connection management group connection used by this object.(Inherited from OperationalDataObject.)

System_CAPS_pubproperty ManagementGroupId

(Inherited from MonitoringBase.)

System_CAPS_pubproperty MonitoringClassId

Obsolete.Gets the globally unique identifier (GUID) of the non-abstract monitoring class of the associated monitoring object.

System_CAPS_pubproperty MonitoringObjectDisplayName

Gets the display name of the monitoring object that is associated with the alert.

System_CAPS_pubproperty MonitoringObjectFullName

Gets the full name of the monitoring object that is associated with the alert.

System_CAPS_pubproperty MonitoringObjectHealthState

Gets the health state of the monitoring object associated with this alert.

System_CAPS_pubproperty MonitoringObjectId

Gets the globally unique identifier (GUID) for the monitoring object that is associated with this alert.(Overrides OperationalDataObject.MonitoringObjectId.)

System_CAPS_pubproperty MonitoringObjectInMaintenanceMode

Gets a value indicating whether the monitoring object associated with the alert is in maintenance mode.

System_CAPS_pubproperty MonitoringObjectName

Gets the name of the monitoring object that is associated with this alert.

System_CAPS_pubproperty MonitoringObjectPath

Gets the path to the monitoring object that is associated with this alert.

System_CAPS_pubproperty MonitoringRuleId

Obsolete.Gets the globally unique identifier (GUID) for the rule associated with the alert.(Overrides OperationalDataObject.MonitoringRuleId.)

System_CAPS_pubproperty Name

Gets the name of the alert.

System_CAPS_pubproperty NetbiosComputerName

Gets the name of the computer that raised this alert.

System_CAPS_pubproperty NetbiosDomainName

Gets the domain of the computer that raised this alert.

System_CAPS_pubproperty Owner

Gets or sets the owner of the alert.

System_CAPS_pubproperty Parameters

Gets a collection of parameters for the alert.

System_CAPS_pubproperty PrincipalName

Gets the principal name of the computer that this alert was created for.

System_CAPS_pubproperty Priority

Gets the priority of the alert.

System_CAPS_pubproperty 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.

System_CAPS_pubproperty RepeatCount

Gets the repeat count of this alert.

System_CAPS_pubproperty ResolutionState

Gets the resolution state of the alert.

System_CAPS_pubproperty ResolvedBy

Gets the user who resolved this alert.

System_CAPS_pubproperty RuleId

(Overrides OperationalDataObject.RuleId.)

System_CAPS_pubproperty Severity

Gets the severity of the alert.

System_CAPS_pubproperty SiteName

Gets the site name of the alert.

System_CAPS_pubproperty StateLastModified

Gets the time, in DateTime format, that the state of this alert was last modified.

System_CAPS_pubproperty TicketId

Gets or sets a string identifier for the ticket of the alert.

System_CAPS_pubproperty TimeAdded

Gets the time, in DateTime format, the alert was added to the system.

System_CAPS_pubproperty TimeRaised

Gets the time, in DateTime format, the alert was raised.

System_CAPS_pubproperty TimeResolutionStateLastModified

Gets the last time, in DateTime format, the resolution state of the alert was modified.

System_CAPS_pubproperty TimeResolved

Gets the time, in DateTime format, the alert was resolved.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Determines whether this object is equal to the specified object.(Inherited from OperationalDataObject.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

Gets the hash code for the OperationalDataObject object(Inherited from OperationalDataObject.)

System_CAPS_pubmethod GetMonitoringAlertHistory()

Gets a collection of MonitoringAlertHistory objects that contain the history for the alert.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Reconnect(EnterpriseManagementGroup)

Reconnects to the specified management group after the object has been disconnected.(Inherited from OperationalDataObject.)

System_CAPS_pubmethod Refresh()

Refreshes the alert from the data store.

System_CAPS_pubmethod ToString()

(Inherited from MonitoringBase.)

System_CAPS_pubmethod Update(String)

Updates the alert and adds a comment about the update.

System_CAPS_pubmethod 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