Class EmailReceiver
An email receiver.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class EmailReceiver
Constructors
EmailReceiver()
Initializes a new instance of the EmailReceiver class.
Declaration
public EmailReceiver ();
EmailReceiver(String, String, Boolean, Nullable<ReceiverStatus>)
Initializes a new instance of the EmailReceiver class.
Declaration
public EmailReceiver (string name, string emailAddress, bool useCommonAlertSchema, Nullable<Microsoft.Azure.Management.Monitor.Models.ReceiverStatus> status = null);
Parameters
|
String
name
The name of the email receiver. Names must be unique across all receivers within an action group. |
|
String
emailAddress
The email address of this receiver. |
|
Boolean
useCommonAlertSchema
Indicates whether to use common alert schema. |
|
Nullable<ReceiverStatus>
status
The receiver status of the e-mail. Possible values include: 'NotSpecified', 'Enabled', 'Disabled' |
Properties
EmailAddress
Gets or sets the email address of this receiver.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="emailAddress")]
public string EmailAddress { get; set; }
Property Value
|
String
|
Name
Gets or sets the name of the email receiver. Names must be unique across all receivers within an action group.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="name")]
public string Name { get; set; }
Property Value
|
String
|
Status
Gets the receiver status of the e-mail. Possible values include: 'NotSpecified', 'Enabled', 'Disabled'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="status")]
public Nullable<Microsoft.Azure.Management.Monitor.Models.ReceiverStatus> Status { get; }
Property Value
|
Nullable<ReceiverStatus>
|
UseCommonAlertSchema
Gets or sets indicates whether to use common alert schema.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="useCommonAlertSchema")]
public bool UseCommonAlertSchema { get; set; }
Property Value
|
Boolean
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |