-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SyslogDataSource.cs
61 lines (55 loc) · 2.64 KB
/
SyslogDataSource.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
51
52
53
54
55
56
57
58
59
60
61
// 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>
/// Definition of which syslog data will be collected and how it will be collected.
/// Only collected from Linux machines.
/// </summary>
public partial class SyslogDataSource
{
/// <summary> Initializes a new instance of SyslogDataSource. </summary>
public SyslogDataSource()
{
Streams = new ChangeTrackingList<SyslogDataSourceStream>();
FacilityNames = new ChangeTrackingList<SyslogDataSourceFacilityName>();
LogLevels = new ChangeTrackingList<SyslogDataSourceLogLevel>();
}
/// <summary> Initializes a new instance of SyslogDataSource. </summary>
/// <param name="streams">
/// List of streams that this data source will be sent to.
/// A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
/// </param>
/// <param name="facilityNames"> The list of facility names. </param>
/// <param name="logLevels"> The log levels to collect. </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 SyslogDataSource(IList<SyslogDataSourceStream> streams, IList<SyslogDataSourceFacilityName> facilityNames, IList<SyslogDataSourceLogLevel> logLevels, string name)
{
Streams = streams;
FacilityNames = facilityNames;
LogLevels = logLevels;
Name = name;
}
/// <summary>
/// List of streams that this data source will be sent to.
/// A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
/// </summary>
public IList<SyslogDataSourceStream> Streams { get; }
/// <summary> The list of facility names. </summary>
public IList<SyslogDataSourceFacilityName> FacilityNames { get; }
/// <summary> The log levels to collect. </summary>
public IList<SyslogDataSourceLogLevel> LogLevels { 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; }
}
}