Class WindowsEventLogDataSource
java.lang.Object
com.azure.resourcemanager.monitor.models.WindowsEventLogDataSource
Definition of which Windows Event Log events will be collected and how they will be collected. Only collected from
Windows machines.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WindowsEventLogDataSource class. -
Method Summary
Modifier and TypeMethodDescriptionname()Get the name property: A friendly name for the data source.streams()Get the streams property: List of streams that this data source will be sent to.voidvalidate()Validates the instance.Set the name property: A friendly name for the data source.Set the streams property: List of streams that this data source will be sent to.withXPathQueries(List<String> xPathQueries) Set the xPathQueries property: A list of Windows Event Log queries in XPATH format.Get the xPathQueries property: A list of Windows Event Log queries in XPATH format.
-
Constructor Details
-
WindowsEventLogDataSource
public WindowsEventLogDataSource()Creates an instance of WindowsEventLogDataSource class.
-
-
Method Details
-
streams
Get the streams property: 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.- Returns:
- the streams value.
-
withStreams
Set the streams property: 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.- Parameters:
streams- the streams value to set.- Returns:
- the WindowsEventLogDataSource object itself.
-
xPathQueries
Get the xPathQueries property: A list of Windows Event Log queries in XPATH format.- Returns:
- the xPathQueries value.
-
withXPathQueries
Set the xPathQueries property: A list of Windows Event Log queries in XPATH format.- Parameters:
xPathQueries- the xPathQueries value to set.- Returns:
- the WindowsEventLogDataSource object itself.
-
name
Get the name property: 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:
- the name value.
-
withName
Set the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.- Parameters:
name- the name value to set.- Returns:
- the WindowsEventLogDataSource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-