CommandNotificationAction Class
Applies To: Operations Manager for System Center 2012
Represents a command that executes in response to a triggered alert or state change.
Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Inheritance Hierarchy
System.Object
Microsoft.EnterpriseManagement.Common.MonitoringBase
Microsoft.EnterpriseManagement.Common.CreatableMonitoringBaseWithId
Microsoft.EnterpriseManagement.Administration.NotificationAction
Microsoft.EnterpriseManagement.Administration.CommandNotificationAction
Syntax
[SerializableAttribute]
public class CommandNotificationAction : NotificationAction
[SerializableAttribute]
public ref class CommandNotificationAction : NotificationAction
[<SerializableAttribute>]
type CommandNotificationAction =
class
inherit NotificationAction
end
<SerializableAttribute>
Public Class CommandNotificationAction
Inherits NotificationAction
Constructors
Name | Description | |
---|---|---|
CommandNotificationAction(String, String) | Initializes the CommandNotificationAction class with user-defined names for the notification action and the recipient protocol. |
Properties
Name | Description | |
---|---|---|
ApplicationName | Gets or sets the name of the application that is executed by this notification action. |
|
CommandLine | Gets or sets the command that this notification action executes. |
|
Description | Gets or sets the description of the notification action.(Inherited from NotificationAction.) |
|
DisplayName | Gets or sets the display name of the notification action.(Inherited from NotificationAction.) |
|
Id | (Inherited from CreatableMonitoringBaseWithId.) |
|
ManagementGroup | The connection management group connection used by this object.(Inherited from NotificationAction.) |
|
ManagementGroupId | (Inherited from MonitoringBase.) |
|
Name | Gets or sets the name of the notification action.(Inherited from NotificationAction.) |
|
RecipientProtocol | Gets or sets the transport protocol used to deliver notifications to the recipient. |
|
Timeout | Gets or sets the number of seconds to wait for the command to complete execution. |
|
WorkingDirectory | Gets or sets the path of the directory in which the command is executed. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from CreatableMonitoringBaseWithId.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from CreatableMonitoringBaseWithId.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
Reconnect(EnterpriseManagementGroup) | Reconnects to the specified management group after the object has been disconnected.(Inherited from NotificationAction.) |
|
ToString() | (Inherited from MonitoringBase.) |
|
Update() | Updates the notification action.(Inherited from NotificationAction.) |
Remarks
Defining a command that responds to triggered alerts or state changes allows you to specify a path to an application or script that can perform basic troubleshooting functions for a particular failure.
After initializing a CommandNotificationAction object, you can add it to the list of actions for a particular subscription by setting the value of the Actions parameter.
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.Administration Namespace
Return to top