LoggerContract Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LoggerContract() |
Initializes a new instance of the LoggerContract class. |
LoggerContract(String, String, String, String, String, IDictionary<String,String>, Nullable<Boolean>, String) |
Initializes a new instance of the LoggerContract class. |
LoggerContract()
Initializes a new instance of the LoggerContract class.
public LoggerContract ();
Public Sub New ()
Applies to
LoggerContract(String, String, String, String, String, IDictionary<String,String>, Nullable<Boolean>, String)
Initializes a new instance of the LoggerContract class.
public LoggerContract (string loggerType, string id = default, string name = default, string type = default, string description = default, System.Collections.Generic.IDictionary<string,string> credentials = default, bool? isBuffered = default, string resourceId = default);
new Microsoft.Azure.Management.ApiManagement.Models.LoggerContract : string * string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * string -> Microsoft.Azure.Management.ApiManagement.Models.LoggerContract
Public Sub New (loggerType As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional description As String = Nothing, Optional credentials As IDictionary(Of String, String) = Nothing, Optional isBuffered As Nullable(Of Boolean) = Nothing, Optional resourceId As String = Nothing)
Parameters
- loggerType
- String
Logger type. Possible values include: 'azureEventHub', 'applicationInsights', 'azureMonitor'
- id
- String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description
- String
Logger description.
- credentials
- IDictionary<String,String>
The name and SendRule connection string of the event hub for azureEventHub logger. Instrumentation key for applicationInsights logger.
Whether records are buffered in the logger before publishing. Default is assumed to be true.
- resourceId
- String
Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource).
Applies to
Azure SDK for .NET