-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DiagnosticSettingData.cs
74 lines (68 loc) · 5.34 KB
/
DiagnosticSettingData.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
62
63
64
65
66
67
68
69
70
71
72
73
74
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Monitor.Models;
namespace Azure.ResourceManager.Monitor
{
/// <summary>
/// A class representing the DiagnosticSetting data model.
/// The diagnostic setting resource.
/// </summary>
public partial class DiagnosticSettingData : ResourceData
{
/// <summary> Initializes a new instance of DiagnosticSettingData. </summary>
public DiagnosticSettingData()
{
Metrics = new ChangeTrackingList<MetricSettings>();
Logs = new ChangeTrackingList<LogSettings>();
}
/// <summary> Initializes a new instance of DiagnosticSettingData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="storageAccountId"> The resource ID of the storage account to which you would like to send Diagnostic Logs. </param>
/// <param name="serviceBusRuleId"> The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. </param>
/// <param name="eventHubAuthorizationRuleId"> The resource Id for the event hub authorization rule. </param>
/// <param name="eventHubName"> The name of the event hub. If none is specified, the default event hub will be selected. </param>
/// <param name="metrics"> The list of metric settings. </param>
/// <param name="logs"> The list of logs settings. </param>
/// <param name="workspaceId"> The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. </param>
/// <param name="marketplacePartnerId"> The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. </param>
/// <param name="logAnalyticsDestinationType"> A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.). </param>
internal DiagnosticSettingData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceIdentifier storageAccountId, ResourceIdentifier serviceBusRuleId, ResourceIdentifier eventHubAuthorizationRuleId, string eventHubName, IList<MetricSettings> metrics, IList<LogSettings> logs, ResourceIdentifier workspaceId, ResourceIdentifier marketplacePartnerId, string logAnalyticsDestinationType) : base(id, name, resourceType, systemData)
{
StorageAccountId = storageAccountId;
ServiceBusRuleId = serviceBusRuleId;
EventHubAuthorizationRuleId = eventHubAuthorizationRuleId;
EventHubName = eventHubName;
Metrics = metrics;
Logs = logs;
WorkspaceId = workspaceId;
MarketplacePartnerId = marketplacePartnerId;
LogAnalyticsDestinationType = logAnalyticsDestinationType;
}
/// <summary> The resource ID of the storage account to which you would like to send Diagnostic Logs. </summary>
public ResourceIdentifier StorageAccountId { get; set; }
/// <summary> The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. </summary>
public ResourceIdentifier ServiceBusRuleId { get; set; }
/// <summary> The resource Id for the event hub authorization rule. </summary>
public ResourceIdentifier EventHubAuthorizationRuleId { get; set; }
/// <summary> The name of the event hub. If none is specified, the default event hub will be selected. </summary>
public string EventHubName { get; set; }
/// <summary> The list of metric settings. </summary>
public IList<MetricSettings> Metrics { get; }
/// <summary> The list of logs settings. </summary>
public IList<LogSettings> Logs { get; }
/// <summary> The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. </summary>
public ResourceIdentifier WorkspaceId { get; set; }
/// <summary> The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. </summary>
public ResourceIdentifier MarketplacePartnerId { get; set; }
/// <summary> A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.). </summary>
public string LogAnalyticsDestinationType { get; set; }
}
}