Partager via


DataSourcesSpec Class

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

Implements

public class DataSourcesSpec
implements JsonSerializable<DataSourcesSpec>

Specification of data sources that will be collected.

Constructor Summary

Constructor Description
DataSourcesSpec()

Creates an instance of DataSourcesSpec class.

Method Summary

Modifier and Type Method and Description
List<ExtensionDataSource> extensions()

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

static DataSourcesSpec fromJson(JsonReader jsonReader)

Reads an instance of DataSourcesSpec from the JsonReader.

List<IisLogsDataSource> iisLogs()

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

List<LogFilesDataSource> logFiles()

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

List<PerfCounterDataSource> performanceCounters()

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

List<SyslogDataSource> syslog()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<WindowsEventLogDataSource> windowsEventLogs()

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

DataSourcesSpec withExtensions(List<ExtensionDataSource> extensions)

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

DataSourcesSpec withIisLogs(List<IisLogsDataSource> iisLogs)

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

DataSourcesSpec withLogFiles(List<LogFilesDataSource> logFiles)

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

DataSourcesSpec withPerformanceCounters(List<PerfCounterDataSource> performanceCounters)

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

DataSourcesSpec withSyslog(List<SyslogDataSource> syslog)

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

DataSourcesSpec withWindowsEventLogs(List<WindowsEventLogDataSource> windowsEventLogs)

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

Methods inherited from java.lang.Object

Constructor Details

DataSourcesSpec

public DataSourcesSpec()

Creates an instance of DataSourcesSpec class.

Method Details

extensions

public List extensions()

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

Returns:

the extensions value.

fromJson

public static DataSourcesSpec fromJson(JsonReader jsonReader)

Reads an instance of DataSourcesSpec from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

iisLogs

public List iisLogs()

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

Returns:

the iisLogs value.

logFiles

public List logFiles()

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

Returns:

the logFiles value.

performanceCounters

public List performanceCounters()

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

Returns:

the performanceCounters value.

syslog

public List syslog()

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

Returns:

the syslog value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

windowsEventLogs

public List windowsEventLogs()

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

Returns:

the windowsEventLogs value.

withExtensions

public DataSourcesSpec withExtensions(List extensions)

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

Parameters:

extensions - the extensions value to set.

Returns:

the DataSourcesSpec object itself.

withIisLogs

public DataSourcesSpec withIisLogs(List iisLogs)

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

Parameters:

iisLogs - the iisLogs value to set.

Returns:

the DataSourcesSpec object itself.

withLogFiles

public DataSourcesSpec withLogFiles(List logFiles)

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

Parameters:

logFiles - the logFiles value to set.

Returns:

the DataSourcesSpec object itself.

withPerformanceCounters

public DataSourcesSpec withPerformanceCounters(List performanceCounters)

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

Parameters:

performanceCounters - the performanceCounters value to set.

Returns:

the DataSourcesSpec object itself.

withSyslog

public DataSourcesSpec withSyslog(List syslog)

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

Parameters:

syslog - the syslog value to set.

Returns:

the DataSourcesSpec object itself.

withWindowsEventLogs

public DataSourcesSpec withWindowsEventLogs(List windowsEventLogs)

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

Parameters:

windowsEventLogs - the windowsEventLogs value to set.

Returns:

the DataSourcesSpec object itself.

Applies to