Partager via


WindowsEventLogDataSource Class

Definition

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 IJsonSerializable
Public 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()

Applies to