WindowsEventLogDataSource Class    
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.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.WindowsEventLogDataSourceTypeConverter))]
public class WindowsEventLogDataSource : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IWindowsEventLogDataSource[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.WindowsEventLogDataSourceTypeConverter))>]
type WindowsEventLogDataSource = class
    interface IWindowsEventLogDataSource
    interface IJsonSerializablePublic Class WindowsEventLogDataSource
Implements IWindowsEventLogDataSource- Inheritance
- 
				WindowsEventLogDataSource
- Attributes
- Implements
Constructors
| WindowsEventLogDataSource() | Creates an new WindowsEventLogDataSource instance. | 
Properties
| Name | A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule. | 
| Stream | 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. | 
| XPathQuery | A list of Windows Event Log queries in XPATH format. | 
Methods
| DeserializeFromDictionary(IDictionary) | Deserializes a IDictionary into an instance of WindowsEventLogDataSource. | 
| DeserializeFromPSObject(PSObject) | Deserializes a PSObject into an instance of WindowsEventLogDataSource. | 
| FromJson(JsonNode) | Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DataCollection.Models.IWindowsEventLogDataSource. | 
| FromJsonString(String) | Creates a new instance of WindowsEventLogDataSource, deserializing the content from a json string. | 
| ToJson(JsonObject, SerializationMode) | Serializes this instance of WindowsEventLogDataSource into a JsonNode. | 
| ToJsonString() | Serializes this instance to a json string. | 
| ToString() | |