-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DynatraceMonitorResourceLogRules.cs
50 lines (44 loc) · 3.03 KB
/
DynatraceMonitorResourceLogRules.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
40
41
42
43
44
45
46
47
48
49
50
// 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.Dynatrace.Models
{
/// <summary> Set of rules for sending logs for the Monitor resource. </summary>
public partial class DynatraceMonitorResourceLogRules
{
/// <summary> Initializes a new instance of DynatraceMonitorResourceLogRules. </summary>
public DynatraceMonitorResourceLogRules()
{
FilteringTags = new ChangeTrackingList<DynatraceMonitorResourceFilteringTag>();
}
/// <summary> Initializes a new instance of DynatraceMonitorResourceLogRules. </summary>
/// <param name="sendAadLogs"> Flag specifying if AAD logs should be sent for the Monitor resource. </param>
/// <param name="sendSubscriptionLogs"> Flag specifying if subscription logs should be sent for the Monitor resource. </param>
/// <param name="sendActivityLogs"> Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. </param>
/// <param name="filteringTags">
/// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured.
/// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
/// </param>
internal DynatraceMonitorResourceLogRules(AadLogsSendingStatus? sendAadLogs, SubscriptionLogsSendingStatus? sendSubscriptionLogs, ActivityLogsSendingStatus? sendActivityLogs, IList<DynatraceMonitorResourceFilteringTag> filteringTags)
{
SendAadLogs = sendAadLogs;
SendSubscriptionLogs = sendSubscriptionLogs;
SendActivityLogs = sendActivityLogs;
FilteringTags = filteringTags;
}
/// <summary> Flag specifying if AAD logs should be sent for the Monitor resource. </summary>
public AadLogsSendingStatus? SendAadLogs { get; set; }
/// <summary> Flag specifying if subscription logs should be sent for the Monitor resource. </summary>
public SubscriptionLogsSendingStatus? SendSubscriptionLogs { get; set; }
/// <summary> Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. </summary>
public ActivityLogsSendingStatus? SendActivityLogs { get; set; }
/// <summary>
/// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured.
/// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
/// </summary>
public IList<DynatraceMonitorResourceFilteringTag> FilteringTags { get; }
}
}