Partilhar via


WindowsEventLogDataSource Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.WindowsEventLogDataSource

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 WindowsEventLogDataSource class.

Method Summary

Modifier and Type Method and Description
static WindowsEventLogDataSource fromJson(JsonReader jsonReader)

Reads an instance of WindowsEventLogDataSource from the JsonReader.

String name()

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WindowsEventLogDataSource withName(String name)

Set the name property: A friendly name for the data source.

WindowsEventLogDataSource withStreams(List<KnownWindowsEventLogDataSourceStreams> streams)

Set the streams property: List of streams that this data source will be sent to.

WindowsEventLogDataSource withXPathQueries(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.

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:

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.

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.

streams

public List 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

name - the name value to set.

Returns:

the WindowsEventLogDataSource object itself.

withStreams

public WindowsEventLogDataSource withStreams(List 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.

withXPathQueries

public WindowsEventLogDataSource withXPathQueries(List 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.

xPathQueries

public List xPathQueries()

Get the xPathQueries property: A list of Windows Event Log queries in XPATH format.

Returns:

the xPathQueries value.

Applies to