Class WindowsEventLogDataSource
java.lang.Object
com.azure.resourcemanager.monitor.models.WindowsEventLogDataSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsEventLogDataSource>
public final class WindowsEventLogDataSource
extends Object
implements com.azure.json.JsonSerializable<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 TypeMethodDescriptionstatic WindowsEventLogDataSource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WindowsEventLogDataSource from the JsonReader.name()
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.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<WindowsEventLogDataSource>
- Throws:
IOException
-
fromJson
public static WindowsEventLogDataSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WindowsEventLogDataSource from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WindowsEventLogDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the WindowsEventLogDataSource.
-