Freigeben über


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
System_CAPS_pubmethod CommandNotificationAction(String, String)

Initializes the CommandNotificationAction class with user-defined names for the notification action and the recipient protocol.

Properties

Name Description
System_CAPS_pubproperty ApplicationName

Gets or sets the name of the application that is executed by this notification action.

System_CAPS_pubproperty CommandLine

Gets or sets the command that this notification action executes.

System_CAPS_pubproperty Description

Gets or sets the description of the notification action.(Inherited from NotificationAction.)

System_CAPS_pubproperty DisplayName

Gets or sets the display name of the notification action.(Inherited from NotificationAction.)

System_CAPS_pubproperty Id

(Inherited from CreatableMonitoringBaseWithId.)

System_CAPS_pubproperty ManagementGroup

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

System_CAPS_pubproperty ManagementGroupId

(Inherited from MonitoringBase.)

System_CAPS_pubproperty Name

Gets or sets the name of the notification action.(Inherited from NotificationAction.)

System_CAPS_pubproperty RecipientProtocol

Gets or sets the transport protocol used to deliver notifications to the recipient.

System_CAPS_pubproperty Timeout

Gets or sets the number of seconds to wait for the command to complete execution.

System_CAPS_pubproperty WorkingDirectory

Gets or sets the path of the directory in which the command is executed.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from CreatableMonitoringBaseWithId.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from CreatableMonitoringBaseWithId.)

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 NotificationAction.)

System_CAPS_pubmethod ToString()

(Inherited from MonitoringBase.)

System_CAPS_pubmethod 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