Język

ArmMonitorModelFactory.WindowsEventLogDataSource Method

Definition

Definition of which Windows Event Log events will be collected and how they will be collected. Only collected from Windows machines.

public static Azure.ResourceManager.Monitor.Models.WindowsEventLogDataSource WindowsEventLogDataSource(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.WindowsEventLogDataSourceStream> streams = default, System.Collections.Generic.IEnumerable<string> xPathQueries = default, string transformKql = default, string name = default);
static member WindowsEventLogDataSource : seq<Azure.ResourceManager.Monitor.Models.WindowsEventLogDataSourceStream> * seq<string> * string * string -> Azure.ResourceManager.Monitor.Models.WindowsEventLogDataSource
Public Shared Function WindowsEventLogDataSource (Optional streams As IEnumerable(Of WindowsEventLogDataSourceStream) = Nothing, Optional xPathQueries As IEnumerable(Of String) = Nothing, Optional transformKql As String = Nothing, Optional name As String = Nothing) As WindowsEventLogDataSource

Parameters

streams
IEnumerable<WindowsEventLogDataSourceStream>

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.

xPathQueries
IEnumerable<String>

A list of Windows Event Log queries in XPATH format.

transformKql
String

The KQL query to transform the data source. This is a deprecated property and will be removed in future versions.

name
String

A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.

Returns

A new WindowsEventLogDataSource instance for mocking.

Applies to