WindowsEventLogDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. WindowsEventLogDataSource
- com.
Implements
public final class WindowsEventLogDataSource
implements 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
Constructor | Description |
---|---|
WindowsEventLogDataSource() |
Creates an instance of Windows |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Windows |
fromJson(JsonReader jsonReader)
Reads an instance of Windows |
String |
name()
Get the name property: A friendly name for the data source. |
List<Known |
streams()
Get the streams property: List of streams that this data source will be sent to. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Windows |
withName(String name)
Set the name property: A friendly name for the data source. |
Windows |
withStreams(List<KnownWindowsEventLogDataSourceStreams> streams)
Set the streams property: List of streams that this data source will be sent to. |
Windows |
withXPathQueries(List<String> xPathQueries)
Set the x |
List<String> |
xPathQueries()
Get the x |
Methods inherited from java.lang.Object
Constructor Details
WindowsEventLogDataSource
public WindowsEventLogDataSource()
Creates an instance of WindowsEventLogDataSource class.
Method Details
fromJson
public static WindowsEventLogDataSource fromJson(JsonReader jsonReader)
Reads an instance of WindowsEventLogDataSource from the JsonReader.
Parameters:
Returns:
Throws:
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:
streams
public List
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withStreams
public WindowsEventLogDataSource withStreams(List
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:
Returns:
withXPathQueries
public WindowsEventLogDataSource withXPathQueries(List
Set the xPathQueries property: A list of Windows Event Log queries in XPATH format.
Parameters:
Returns:
xPathQueries
public List
Get the xPathQueries property: A list of Windows Event Log queries in XPATH format.
Returns:
Applies to
Azure SDK for Java