Partager via


AlertAction Element

 

Applies To: Windows Server 2012 Essentials, Windows Home Server 2011, Windows Storage Server 2008 R2 Essentials, Windows Small Business Server 2011 Essentials

Specifies the notification action that is performed when the specified condition occurs. The action can be a PowerShell script or a managed assembly.

  
<xs:element name="AlertAction" maxOccurs="1" minOccurs="0">  
  <xs:complexType>  
    <xs:sequence>  
      <xs:choice>  
        <xs:element name="PowerShell" type="PowerShellActionElement" />  
        <xs:element name="Binary" type="BinaryActionElement" />  
      </xs:choice>  
    </xs:sequence>  
  </xs:complexType>  
</xs:element>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description
PowerShell Element Specifies a PowerShell script that provides the notification action that is performed when the specified condition occurs.
Binary Element Specifies a managed assembly that provides the notification action that is performed when the specified condition occurs.

Parent Elements

Element Description
HealthDefinition Element Specifies alerts, health states, and repairs for the health add-in.

See Also

How to: Create a Definition XML File