Class DiagnosticSettingsResource
The diagnostic setting resource.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class DiagnosticSettingsResource : Microsoft.Azure.Management.Monitor.Models.ProxyOnlyResource
Constructors
DiagnosticSettingsResource()
Initializes a new instance of the DiagnosticSettingsResource class.
Declaration
public DiagnosticSettingsResource ();
DiagnosticSettingsResource(String, String, String, String, String, String, String, IList<MetricSettings>, IList<LogSettings>, String, String)
Initializes a new instance of the DiagnosticSettingsResource class.
Declaration
public DiagnosticSettingsResource (string id = null, string name = null, string type = null, string storageAccountId = null, string serviceBusRuleId = null, string eventHubAuthorizationRuleId = null, string eventHubName = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricSettings> metrics = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.LogSettings> logs = null, string workspaceId = null, string logAnalyticsDestinationType = null);
Parameters
|
String
id
Azure resource Id |
|
String
name
Azure resource name |
|
String
type
Azure resource type |
|
String
storageAccountId
The resource ID of the storage account to which you would like to send Diagnostic Logs. |
|
String
serviceBusRuleId
The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. |
|
String
eventHubAuthorizationRuleId
The resource Id for the event hub authorization rule. |
|
String
eventHubName
The name of the event hub. If none is specified, the default event hub will be selected. |
|
IList<MetricSettings>
metrics
The list of metric settings. |
|
IList<LogSettings>
logs
The list of logs settings. |
|
String
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 |
|
String
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.) |
Properties
EventHubAuthorizationRuleId
Gets or sets the resource Id for the event hub authorization rule.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.eventHubAuthorizationRuleId")]
public string EventHubAuthorizationRuleId { get; set; }
Property Value
|
String
|
EventHubName
Gets or sets the name of the event hub. If none is specified, the default event hub will be selected.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.eventHubName")]
public string EventHubName { get; set; }
Property Value
|
String
|
LogAnalyticsDestinationType
Gets or sets 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.)
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.logAnalyticsDestinationType")]
public string LogAnalyticsDestinationType { get; set; }
Property Value
|
String
|
Logs
Gets or sets the list of logs settings.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.logs")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.LogSettings> Logs { get; set; }
Property Value
|
IList<LogSettings>
|
Metrics
Gets or sets the list of metric settings.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.metrics")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricSettings> Metrics { get; set; }
Property Value
|
IList<MetricSettings>
|
ServiceBusRuleId
Gets or sets the service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.serviceBusRuleId")]
public string ServiceBusRuleId { get; set; }
Property Value
|
String
|
StorageAccountId
Gets or sets the resource ID of the storage account to which you would like to send Diagnostic Logs.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.storageAccountId")]
public string StorageAccountId { get; set; }
Property Value
|
String
|
WorkspaceId
Gets or sets 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
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.workspaceId")]
public string WorkspaceId { get; set; }
Property Value
|
String
|