-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RuleEmailAction.cs
39 lines (33 loc) · 1.99 KB
/
RuleEmailAction.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Monitor.Models
{
/// <summary> Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case. </summary>
public partial class RuleEmailAction : AlertRuleAction
{
/// <summary> Initializes a new instance of RuleEmailAction. </summary>
public RuleEmailAction()
{
CustomEmails = new ChangeTrackingList<string>();
OdataType = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction";
}
/// <summary> Initializes a new instance of RuleEmailAction. </summary>
/// <param name="odataType"> specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction. </param>
/// <param name="sendToServiceOwners"> Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated. </param>
/// <param name="customEmails"> the list of administrator's custom email addresses to notify of the activation of the alert. </param>
internal RuleEmailAction(string odataType, bool? sendToServiceOwners, IList<string> customEmails) : base(odataType)
{
SendToServiceOwners = sendToServiceOwners;
CustomEmails = customEmails;
OdataType = odataType ?? "Microsoft.Azure.Management.Insights.Models.RuleEmailAction";
}
/// <summary> Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated. </summary>
public bool? SendToServiceOwners { get; set; }
/// <summary> the list of administrator's custom email addresses to notify of the activation of the alert. </summary>
public IList<string> CustomEmails { get; }
}
}