Partager via


DataCollectionRuleDataSources Class

public final class DataCollectionRuleDataSources
extends DataSourcesSpec

The specification of data sources. This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.

Constructor Summary

Constructor Description
DataCollectionRuleDataSources()

Creates an instance of DataCollectionRuleDataSources class.

Method Summary

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

Reads an instance of DataCollectionRuleDataSources from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataCollectionRuleDataSources withExtensions(List<ExtensionDataSource> extensions)

Set the extensions property: The list of Azure VM extension data source configurations.

DataCollectionRuleDataSources withIisLogs(List<IisLogsDataSource> iisLogs)

Set the iisLogs property: The list of IIS logs source configurations.

DataCollectionRuleDataSources withLogFiles(List<LogFilesDataSource> logFiles)

Set the logFiles property: The list of Log files source configurations.

DataCollectionRuleDataSources withPerformanceCounters(List<PerfCounterDataSource> performanceCounters)

Set the performanceCounters property: The list of performance counter data source configurations.

DataCollectionRuleDataSources withSyslog(List<SyslogDataSource> syslog)

Set the syslog property: The list of Syslog data source configurations.

DataCollectionRuleDataSources withWindowsEventLogs(List<WindowsEventLogDataSource> windowsEventLogs)

Set the windowsEventLogs property: The list of Windows Event Log data source configurations.

Methods inherited from DataSourcesSpec

Methods inherited from java.lang.Object

Constructor Details

DataCollectionRuleDataSources

public DataCollectionRuleDataSources()

Creates an instance of DataCollectionRuleDataSources class.

Method Details

fromJson

public static DataCollectionRuleDataSources fromJson(JsonReader jsonReader)

Reads an instance of DataCollectionRuleDataSources from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataCollectionRuleDataSources 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 DataCollectionRuleDataSources.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataCollectionRuleDataSources.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DataCollectionRuleDataSources.validate()

withExtensions

public DataCollectionRuleDataSources withExtensions(List extensions)

Set the extensions property: The list of Azure VM extension data source configurations.

Overrides:

DataCollectionRuleDataSources.withExtensions(List<ExtensionDataSource> extensions)

Parameters:

extensions

withIisLogs

public DataCollectionRuleDataSources withIisLogs(List iisLogs)

Set the iisLogs property: The list of IIS logs source configurations.

Overrides:

DataCollectionRuleDataSources.withIisLogs(List<IisLogsDataSource> iisLogs)

Parameters:

iisLogs

withLogFiles

public DataCollectionRuleDataSources withLogFiles(List logFiles)

Set the logFiles property: The list of Log files source configurations.

Overrides:

DataCollectionRuleDataSources.withLogFiles(List<LogFilesDataSource> logFiles)

Parameters:

logFiles

withPerformanceCounters

public DataCollectionRuleDataSources withPerformanceCounters(List performanceCounters)

Set the performanceCounters property: The list of performance counter data source configurations.

Overrides:

DataCollectionRuleDataSources.withPerformanceCounters(List<PerfCounterDataSource> performanceCounters)

Parameters:

performanceCounters

withSyslog

public DataCollectionRuleDataSources withSyslog(List syslog)

Set the syslog property: The list of Syslog data source configurations.

Overrides:

DataCollectionRuleDataSources.withSyslog(List<SyslogDataSource> syslog)

Parameters:

syslog

withWindowsEventLogs

public DataCollectionRuleDataSources withWindowsEventLogs(List windowsEventLogs)

Set the windowsEventLogs property: The list of Windows Event Log data source configurations.

Overrides:

DataCollectionRuleDataSources.withWindowsEventLogs(List<WindowsEventLogDataSource> windowsEventLogs)

Parameters:

windowsEventLogs

Applies to