ArmMonitorModelFactory.WindowsEventLogDataSource Method
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.
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
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.