Partager via


SyslogDataSource Class

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

Implements

public final class SyslogDataSource
implements JsonSerializable<SyslogDataSource>

Definition of which syslog data will be collected and how it will be collected. Only collected from Linux machines.

Constructor Summary

Constructor Description
SyslogDataSource()

Creates an instance of SyslogDataSource class.

Method Summary

Modifier and Type Method and Description
List<KnownSyslogDataSourceFacilityNames> facilityNames()

Get the facilityNames property: The list of facility names.

static SyslogDataSource fromJson(JsonReader jsonReader)

Reads an instance of SyslogDataSource from the JsonReader.

List<KnownSyslogDataSourceLogLevels> logLevels()

Get the logLevels property: The log levels to collect.

String name()

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

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

SyslogDataSource withFacilityNames(List<KnownSyslogDataSourceFacilityNames> facilityNames)

Set the facilityNames property: The list of facility names.

SyslogDataSource withLogLevels(List<KnownSyslogDataSourceLogLevels> logLevels)

Set the logLevels property: The log levels to collect.

SyslogDataSource withName(String name)

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

SyslogDataSource withStreams(List<KnownSyslogDataSourceStreams> streams)

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

Methods inherited from java.lang.Object

Constructor Details

SyslogDataSource

public SyslogDataSource()

Creates an instance of SyslogDataSource class.

Method Details

facilityNames

public List facilityNames()

Get the facilityNames property: The list of facility names.

Returns:

the facilityNames value.

fromJson

public static SyslogDataSource fromJson(JsonReader jsonReader)

Reads an instance of SyslogDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

logLevels

public List logLevels()

Get the logLevels property: The log levels to collect.

Returns:

the logLevels value.

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.

withFacilityNames

public SyslogDataSource withFacilityNames(List facilityNames)

Set the facilityNames property: The list of facility names.

Parameters:

facilityNames - the facilityNames value to set.

Returns:

the SyslogDataSource object itself.

withLogLevels

public SyslogDataSource withLogLevels(List logLevels)

Set the logLevels property: The log levels to collect.

Parameters:

logLevels - the logLevels value to set.

Returns:

the SyslogDataSource object itself.

withName

public SyslogDataSource 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 SyslogDataSource object itself.

withStreams

public SyslogDataSource 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 SyslogDataSource object itself.

Applies to