Class WindowsEventLogDataSource
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.WindowsEventLogDataSource
-
public final class WindowsEventLogDataSource extends Object
Definition of which Windows Event Log events will be collected and how they will be collected. Only collected from Windows machines.
-
-
Constructor Summary
Constructors Constructor Description WindowsEventLogDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: A friendly name for the data source.List<KnownWindowsEventLogDataSourceStreams>streams()Get the streams property: List of streams that this data source will be sent to.voidvalidate()Validates the instance.WindowsEventLogDataSourcewithName(String name)Set the name property: A friendly name for the data source.WindowsEventLogDataSourcewithStreams(List<KnownWindowsEventLogDataSourceStreams> streams)Set the streams property: List of streams that this data source will be sent to.WindowsEventLogDataSourcewithXPathQueries(List<String> xPathQueries)Set the xPathQueries property: A list of Windows Event Log queries in XPATH format.List<String>xPathQueries()Get the xPathQueries property: A list of Windows Event Log queries in XPATH format.
-
-
-
Method Detail
-
streams
public List<KnownWindowsEventLogDataSourceStreams> 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
public WindowsEventLogDataSource withStreams(List<KnownWindowsEventLogDataSourceStreams> streams)
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
public List<String> xPathQueries()
Get the xPathQueries property: A list of Windows Event Log queries in XPATH format.- Returns:
- the xPathQueries value.
-
withXPathQueries
public WindowsEventLogDataSource withXPathQueries(List<String> xPathQueries)
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
public String 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
public WindowsEventLogDataSource withName(String name)
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.
-
-