-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
WindowsFirewallLogsDataSource.cs
48 lines (41 loc) · 1.75 KB
/
WindowsFirewallLogsDataSource.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;
namespace Azure.ResourceManager.Monitor.Models
{
/// <summary> Enables Firewall logs to be collected by this data collection rule. </summary>
public partial class WindowsFirewallLogsDataSource
{
/// <summary> Initializes a new instance of WindowsFirewallLogsDataSource. </summary>
/// <param name="streams"> Firewall logs streams. </param>
/// <exception cref="ArgumentNullException"> <paramref name="streams"/> is null. </exception>
public WindowsFirewallLogsDataSource(IEnumerable<string> streams)
{
Argument.AssertNotNull(streams, nameof(streams));
Streams = streams.ToList();
}
/// <summary> Initializes a new instance of WindowsFirewallLogsDataSource. </summary>
/// <param name="streams"> Firewall logs streams. </param>
/// <param name="name">
/// A friendly name for the data source.
/// This name should be unique across all data sources (regardless of type) within the data collection rule.
/// </param>
internal WindowsFirewallLogsDataSource(IList<string> streams, string name)
{
Streams = streams;
Name = name;
}
/// <summary> Firewall logs streams. </summary>
public IList<string> Streams { get; }
/// <summary>
/// A friendly name for the data source.
/// This name should be unique across all data sources (regardless of type) within the data collection rule.
/// </summary>
public string Name { get; set; }
}
}